13
13
*********************************************************************/
14
14
15
15
/* This sketch demonstrates the "Image Upload" feature of Bluefruit Mobile App.
16
- * Either 2.4" or 3.5" TFT FeatherWing is used to display uploaded image
16
+ * Following TFT Display are supported
17
17
* - https://www.adafruit.com/product/3315
18
18
* - https://www.adafruit.com/product/3651
19
19
* - https://www.adafruit.com/product/4367
20
20
*/
21
21
22
22
#define TFT_35_FEATHERWING 1
23
23
#define TFT_24_FEATHERWING 2
24
- #define TFT_15_GIZMO 3
24
+ #define TFT_GIZMO 3
25
25
26
- // one of above supported TFT add-on
26
+ // [Configurable] Please select one of above supported Display to match your hardware setup
27
27
#define TFT_IN_USE TFT_35_FEATHERWING
28
28
29
29
#include < bluefruit.h>
56
56
#include < Adafruit_ILI9341.h>
57
57
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
58
58
59
- #elif TFT_IN_USE == TFT_15_GIZMO
59
+ #elif TFT_IN_USE == TFT_GIZMO
60
60
#include " Adafruit_ST7789.h"
61
61
Adafruit_ST7789 tft = Adafruit_ST7789(&SPI, TFT_CS, TFT_DC, -1 );
62
62
@@ -78,10 +78,10 @@ BLEUart bleuart(10*1024);
78
78
/* The Image Transfer module sends the image of your choice to Bluefruit LE over UART.
79
79
* Each image sent begins with
80
80
* - A single byte char '!' (0x21) followed by 'I' helper for image
81
- * - Color depth: 24-bit for RGB 888, 16-bit for RGB 655
81
+ * - Color depth: 24-bit for RGB 888, 16-bit for RGB 565
82
82
* - Image width (uint16 little endian, 2 bytes)
83
83
* - Image height (uint16 little endian, 2 bytes)
84
- * - Pixel data encoded as RGB 24- bit and suffixed by a single byte CRC.
84
+ * - Pixel data encoded as RGB 16/24 bit and suffixed by a single byte CRC.
85
85
*
86
86
* Format: [ '!' ] [ 'I' ] [uint8_t color bit] [ uint16 width ] [ uint16 height ] [ r g b ] [ r g b ] [ r g b ] … [ CRC ]
87
87
*/
@@ -106,7 +106,7 @@ void setup()
106
106
{
107
107
Serial.begin (115200 );
108
108
109
- #if TFT_IN_USE == TFT_15_GIZMO
109
+ #if TFT_IN_USE == TFT_GIZMO
110
110
tft.init (240 , 240 );
111
111
tft.setRotation (2 );
112
112
pinMode (TFT_BACKLIGHT, OUTPUT);
@@ -143,7 +143,7 @@ void setup()
143
143
// However, the transfer speed will be affected since immediate callback will block BLE task
144
144
// to process data especially when tft.drawRGBBitmap() is calling.
145
145
#ifdef NRF52840_XXAA
146
- // 2nd argument is true to deferred callbacks i.e queue it up in seperated callback Task
146
+ // 2nd argument is true to deferred callbacks i.e queue it up in separated callback Task
147
147
bleuart.setRxCallback (bleuart_rx_callback, true );
148
148
#else
149
149
// 2nd argument is false to invoke callbacks immediately (thus blocking other ble events)
0 commit comments