mirror of
https://github.com/adafruit/Adafruit_ILI9341.git
synced 2026-10-26 22:10:38 +00:00
updating tftBusWidth value tft8bitbus references in example sketches (adafruit/Adafruit_ILI9341#45)
This commit is contained in:
1 parent
75dadd6a1e
commit
1eb698b4b6
4 files changed
+4
-4
No files matched your search
@@ -15,7 +15,7 @@
|
|||||||
#define TFT_BACKLIGHT 25
|
#define TFT_BACKLIGHT 25
|
||||||
|
|
||||||
// ILI9341 with 8-bit parallel interface:
|
// ILI9341 with 8-bit parallel interface:
|
||||||
Adafruit_ILI9341 tft = Adafruit_ILI9341(tft8, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
Adafruit_ILI9341 tft = Adafruit_ILI9341(tft8bitbus, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(9600);
|
Serial.begin(9600);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#define TFT_RD 9 // Read-strobe pin
|
#define TFT_RD 9 // Read-strobe pin
|
||||||
#define TFT_BACKLIGHT 25
|
#define TFT_BACKLIGHT 25
|
||||||
// ILI9341 with 8-bit parallel interface:
|
// ILI9341 with 8-bit parallel interface:
|
||||||
Adafruit_ILI9341 tft = Adafruit_ILI9341(tft8, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
Adafruit_ILI9341 tft = Adafruit_ILI9341(tft8bitbus, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
||||||
#define USE_BUFFER // buffer all 155 KB of data for bliting - uses passive ram but looks nicer?
|
#define USE_BUFFER // buffer all 155 KB of data for bliting - uses passive ram but looks nicer?
|
||||||
#else
|
#else
|
||||||
// Use SPI
|
// Use SPI
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#define TFT_BACKLIGHT 25
|
#define TFT_BACKLIGHT 25
|
||||||
|
|
||||||
// ILI9341 with 8-bit parallel interface:
|
// ILI9341 with 8-bit parallel interface:
|
||||||
Adafruit_ILI9341 tft(tft8, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
Adafruit_ILI9341 tft(tft8bitbus, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
||||||
|
|
||||||
#define BGCOLOR 0xAD75
|
#define BGCOLOR 0xAD75
|
||||||
#define GRIDCOLOR 0xA815
|
#define GRIDCOLOR 0xA815
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
|
|||||||
#define TFT_RD 9 // Read-strobe pin
|
#define TFT_RD 9 // Read-strobe pin
|
||||||
#define TFT_BACKLIGHT 25
|
#define TFT_BACKLIGHT 25
|
||||||
// ILI9341 with 8-bit parallel interface:
|
// ILI9341 with 8-bit parallel interface:
|
||||||
Adafruit_ILI9341 tft = Adafruit_ILI9341(tft8, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
Adafruit_ILI9341 tft = Adafruit_ILI9341(tft8bitbus, TFT_D0, TFT_WR, TFT_DC, TFT_CS, TFT_RST, TFT_RD);
|
||||||
|
|
||||||
// Size of the color selection boxes and the paintbrush size
|
// Size of the color selection boxes and the paintbrush size
|
||||||
#define BOXSIZE 40
|
#define BOXSIZE 40
|
||||||
|
|||||||
Reference in new issue
Block a user