File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
libraries/Bluefruit52Lib/examples/Peripheral/image_upload Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 40
40
#define TFT_CS 9
41
41
#endif
42
42
43
+ // Circuit Playground Bluefruit for use with TFT 1.5" GIZMO
43
44
#ifdef ARDUINO_NRF52840_CIRCUITPLAY
44
- #define TFT_DC A7
45
- #define TFT_CS A6
45
+ #define TFT_DC 1
46
+ #define TFT_CS 0
47
+ #define TFT_BACKLIGHT A3
46
48
#endif
47
49
48
50
#if TFT_IN_USE == TFT_35_FEATHERWING
49
51
#include " Adafruit_HX8357.h"
50
52
Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC);
53
+
51
54
#elif TFT_IN_USE == TFT_24_FEATHERWING
52
55
#include < Adafruit_ILI9341.h>
53
56
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
57
+
54
58
#elif TFT_IN_USE == TFT_15_GIZMO
55
- #error "Not supported yet"
59
+ #include " Adafruit_ST7789.h"
60
+ Adafruit_ST7789 tft = Adafruit_ST7789(&SPI, TFT_CS, TFT_DC, -1 );
61
+
56
62
#else
57
63
#error "TFT display is not supported"
58
64
#endif
@@ -99,7 +105,17 @@ void setup()
99
105
{
100
106
Serial.begin (115200 );
101
107
108
+ #if TFT_IN_USE == TFT_15_GIZMO
109
+ tft.init (240 , 240 );
110
+ tft.setRotation (2 );
111
+ pinMode (TFT_BACKLIGHT, OUTPUT);
112
+ digitalWrite (TFT_BACKLIGHT, HIGH); // Backlight on
113
+
114
+ #else
102
115
tft.begin ();
116
+
117
+ #endif
118
+
103
119
tft.fillScreen (COLOR_BLACK);
104
120
tft.setTextColor (COLOR_WHITE);
105
121
tft.setTextSize (1 );
You can’t perform that action at this time.
0 commit comments