التخطي إلى المحتوى الرئيسي

المشاركات

عرض المشاركات من فبراير, 2022

code for m5stick c and mlx90614 sensor

  code for m5stick c and mlx90614 sensor /*  * NCIR Temperature Sensor MLX90614  * April 17, 2020  * By Yousef Shabat  */ #include <M5StickC.h> #include <Wire.h>   // Screen Orientation #define TOP_LEFT    1 #define TOP_RIGHT   3   // Global Variables int rotation = TOP_LEFT;        // Screen Orientation boolean lock_rotation = false;  // Rotation Lock boolean lock_screen = false;    // Screen Lock   // Rotate Screen void rotated() {   M5.Lcd.fillScreen(BLACK);   M5.Lcd.setRotation(rotation); }   // Temperature Measurement float measurement() {   uint16_t result;     Wire.beginTransmission(0x5A); // Send Initial Signal and I2C Bus Address   Wire.write(0x07);             // Send data only once and add one address automatically.   ...