Skip to content

Instantly share code, notes, and snippets.

@kokospalme
kokospalme / ILI9488display.ino
Created November 14, 2022 17:21
LVGL ILI9488 problem
#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
@kokospalme
kokospalme / STM8_NTCexample.ino
Last active February 2, 2024 20:30
STM8 NTC example
/*
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