This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <lvgl.h> | |
#include <TFT_eSPI.h> | |
#include <Wire.h> | |
#include "Goodix.h" | |
#define INT_PIN 26 | |
#define RST_PIN 15 | |
#define SDA_PIN 22 | |
#define SCL_PIN 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
STM8 NTC example | |
*/ | |
#include <Serial.h> | |
#define MAX_ANALOG_VALUE 1023 | |
#define TEMP_PIN 6 //A0 | |
#define THERMISTORNOMINAL 10000 // resistance at 25 degrees C [ohm] | |
#define TEMPERATURENOMINAL 25 // temp. for nominal resistance (almost always 25 C) | |
#define NUMSAMPLES 10 //sampling |