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

المشاركات

عرض المشاركات من أبريل, 2020
/*  * 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.   Wire.endTransmission(false);  // Stop signal   Wire.requestFrom(0x5A, 2);    // Get 2 consecutive data from 0x...