mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-23 12:53:23 +00:00
18 lines
311 B
C++
18 lines
311 B
C++
![]() |
#include "configuration.h"
|
||
|
|
||
|
#include <SPI.h>
|
||
|
#include <TFT_eSPI.h> // Graphics and font library for ST7735 driver chip
|
||
|
|
||
|
#ifdef ST7735_CS
|
||
|
|
||
|
TFT_eSPI tft = TFT_eSPI(); // Invoke library, pins defined in User_Setup.h
|
||
|
|
||
|
void TFTinit()
|
||
|
{
|
||
|
tft.init();
|
||
|
tft.setRotation(1);
|
||
|
tft.fillScreen(TFT_BLUE);
|
||
|
}
|
||
|
|
||
|
#endif
|