Skip to content

Commit 6d7b755

Browse files
committed
clean up
1 parent e01ac26 commit 6d7b755

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/image_upload/image_upload.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
*********************************************************************/
1414

1515
/* 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
1717
* - https://www.adafruit.com/product/3315
1818
* - https://www.adafruit.com/product/3651
1919
* - https://www.adafruit.com/product/4367
2020
*/
2121

2222
#define TFT_35_FEATHERWING 1
2323
#define TFT_24_FEATHERWING 2
24-
#define TFT_15_GIZMO 3
24+
#define TFT_GIZMO 3
2525

26-
// one of above supported TFT add-on
26+
// [Configurable] Please select one of above supported Display to match your hardware setup
2727
#define TFT_IN_USE TFT_35_FEATHERWING
2828

2929
#include <bluefruit.h>
@@ -56,7 +56,7 @@
5656
#include <Adafruit_ILI9341.h>
5757
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
5858

59-
#elif TFT_IN_USE == TFT_15_GIZMO
59+
#elif TFT_IN_USE == TFT_GIZMO
6060
#include "Adafruit_ST7789.h"
6161
Adafruit_ST7789 tft = Adafruit_ST7789(&SPI, TFT_CS, TFT_DC, -1);
6262

@@ -78,10 +78,10 @@ BLEUart bleuart(10*1024);
7878
/* The Image Transfer module sends the image of your choice to Bluefruit LE over UART.
7979
* Each image sent begins with
8080
* - 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
8282
* - Image width (uint16 little endian, 2 bytes)
8383
* - 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.
8585
*
8686
* Format: [ '!' ] [ 'I' ] [uint8_t color bit] [ uint16 width ] [ uint16 height ] [ r g b ] [ r g b ] [ r g b ] … [ CRC ]
8787
*/
@@ -106,7 +106,7 @@ void setup()
106106
{
107107
Serial.begin(115200);
108108

109-
#if TFT_IN_USE == TFT_15_GIZMO
109+
#if TFT_IN_USE == TFT_GIZMO
110110
tft.init(240, 240);
111111
tft.setRotation(2);
112112
pinMode(TFT_BACKLIGHT, OUTPUT);
@@ -143,7 +143,7 @@ void setup()
143143
// However, the transfer speed will be affected since immediate callback will block BLE task
144144
// to process data especially when tft.drawRGBBitmap() is calling.
145145
#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
147147
bleuart.setRxCallback(bleuart_rx_callback, true);
148148
#else
149149
// 2nd argument is false to invoke callbacks immediately (thus blocking other ble events)

0 commit comments

Comments
 (0)