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



تعليقات

المشاركات الشائعة من هذه المدونة

Thermal imager camera.

 Thermal imager camera. -------------------------------------------------------------------------------- Code: /*______Import Libraries_______*/ #include <MCUFRIEND_kbv.h> MCUFRIEND_kbv tft;       // hard-wired for UNO shields anyway. #include <TouchScreen.h> /*______End of Libraries_______*/ #include <Wire.h> #include <Adafruit_AMG88xx.h> #include "Adafruit_GFX.h" /*______Assign names to colors and pressure_______*/ #define BLACK   0x0000 //Black->White #define YELLOW    0x001F //Blue->Yellow #define RED     0xF800 //Red->Cyan #define PINK   0x07E0 //Green-> Pink #define CYAN    0x07FF //Cyan -> Red #define GREEN 0xF81F //Pink -> Green  #define BLUE  0xFFE0 //Yellow->Blue #define WHITE   0xFFFF //White-> Black #define MINPRESSURE 10 #define MAXPRESSURE 1000 /*_______Assigned______*/ //#define DEBUG //Comment this out to remove the text over...

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.   ...