Skip to content

Commit 7167fc5

Browse files
committed
init with id
1 parent df86262 commit 7167fc5

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

examples/rotationtest/rotationtest.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void setup(void) {
5555
while (1);
5656
}
5757

58-
tft.begin();
58+
tft.begin(identifier);
5959

6060
tft.fillScreen(BLACK);
6161

examples/tftbmp/tftbmp.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void setup()
6060
while (1);
6161
}
6262

63-
tft.begin();
63+
tft.begin(identifier);
6464

6565
Serial.print("Initializing SD card...");
6666
pinMode(10, OUTPUT);

examples/tftbmp_shield/tftbmp_shield.pde

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ void bmpdraw(File f, int x, int y) {
132132
// bitmaps are stored with the BOTTOM line first so we have to move 'up'
133133

134134
if (tft.getRotation() == 3) {
135-
tft.writeRegister(TFTLCD_ENTRY_MOD, 0x1028);
135+
tft.writeRegister16(ILI932X_ENTRY_MOD, 0x1028);
136136
tft.goTo(x+i, y);
137137
} else if (tft.getRotation() == 2) {
138-
tft.writeRegister(TFTLCD_ENTRY_MOD, 0x1020);
138+
tft.writeRegister16(ILI932X_ENTRY_MOD, 0x1020);
139139
tft.goTo(x+bmpWidth, y+i);
140140
} else if (tft.getRotation() == 1) {
141-
tft.writeRegister(TFTLCD_ENTRY_MOD, 0x1018);
141+
tft.writeRegister16(ILI932X_ENTRY_MOD, 0x1018);
142142
tft.goTo(x+bmpHeight-1-i, y);
143143
} else if (tft.getRotation() == 0) {
144-
tft.writeRegister(TFTLCD_ENTRY_MOD, 0x1030);
144+
tft.writeRegister16(ILI932X_ENTRY_MOD, 0x1030);
145145
tft.goTo(x, y+bmpHeight-i);
146146
}
147147

@@ -173,7 +173,7 @@ void bmpdraw(File f, int x, int y) {
173173
tft.writeData(p);
174174
}
175175
}
176-
tft.writeRegister(TFTLCD_ENTRY_MOD, 0x1030);
176+
tft.writeRegister16(ILI932X_ENTRY_MOD, 0x1030);
177177
Serial.print(millis() - time, DEC);
178178
Serial.println(" ms");
179179
}
@@ -248,4 +248,3 @@ uint32_t read32(File f) {
248248
d |= b;
249249
return d;
250250
}
251-

examples/tftpaint/tftpaint.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void setup(void) {
7373
while (1);
7474
}
7575

76-
tft.begin();
76+
tft.begin(identifier);
7777
tft.fillScreen(BLACK);
7878

7979
tft.fillRect(0, 0, BOXSIZE, BOXSIZE, RED);

examples/tftpaintshield/tftpaintshield.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void setup(void) {
6161
while (1);
6262
}
6363

64-
tft.begin();
64+
tft.begin(identifier);
6565
tft.fillScreen(BLACK);
6666

6767
tft.fillRect(0, 0, BOXSIZE, BOXSIZE, RED);

0 commit comments

Comments
 (0)