Untitled
Anonymous
Plain Text
09/25/2026 12:40 PM
489 B
18
Indexable
Never
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#define TFT_CS 5
#define TFT_DC 2
#define TFT_RST 4
#define TFT_SCLK 18
#define TFT_MOSI 23
Adafruit_ST7789 tft(TFT_CS, TFT_DC, TFT_RST);
void setup()
{
SPI.begin(TFT_SCLK, -1, TFT_MOSI, TFT_CS);
tft.init(240, 280);
tft.setRotation(0);
tft.fillScreen(ST77XX_BLACK);
tft.setTextColor(ST77XX_WHITE);
tft.setTextSize(3);
tft.setCursor(25, 110);
tft.print("IoTNestBD");
}
void loop()
{
}Editor is loading...
Leave a Comment