Skip to content

Commit e00fcbb

Browse files
committed
Fixed peripheral mode selectDisplayMode.
1 parent d503714 commit e00fcbb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

examples/Inkplate_10/Others/Inkplate_Factory_Programming_VCOM/Inkplate_Factory_Programming_VCOM.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ void loop()
254254
sscanf(s + 3, "%d", &c);
255255
// sprintf(temp, "display.setDisplayMode(%s)\n", c == 0 ? "INKPLATE_1BIT" : "INKPLATE_3BIT");
256256
// Serial.print(temp);
257-
if (c == INKPLATE_1BIT)
257+
if (c == 1)
258258
display.selectDisplayMode(INKPLATE_1BIT);
259-
if (c == INKPLATE_3BIT)
259+
if (c == 3)
260260
display.selectDisplayMode(INKPLATE_3BIT);
261261
break;
262262

examples/Inkplate_10/Others/Inkplate_Peripheral_Mode/Inkplate_Peripheral_Mode.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ void loop()
243243
sscanf(s + 3, "%d", &c);
244244
// sprintf(temp, "display.setDisplayMode(%s)\n", c == 0 ? "INKPLATE_1BIT" : "INKPLATE_3BIT");
245245
// Serial.print(temp);
246-
if (c == INKPLATE_1BIT)
246+
if (c == 1)
247247
display.selectDisplayMode(INKPLATE_1BIT);
248-
if (c == INKPLATE_3BIT)
248+
if (c == 3)
249249
display.selectDisplayMode(INKPLATE_3BIT);
250250
break;
251251

examples/Inkplate_6/Others/Inkplate_Factory_Programming_VCOM/Inkplate_Factory_Programming_VCOM.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ void loop()
254254
sscanf(s + 3, "%d", &c);
255255
// sprintf(temp, "display.setDisplayMode(%s)\n", c == 0 ? "INKPLATE_1BIT" : "INKPLATE_3BIT");
256256
// Serial.print(temp);
257-
if (c == INKPLATE_1BIT)
257+
if (c == 1)
258258
display.selectDisplayMode(INKPLATE_1BIT);
259-
if (c == INKPLATE_3BIT)
259+
if (c == 3)
260260
display.selectDisplayMode(INKPLATE_3BIT);
261261
break;
262262

examples/Inkplate_6/Others/Inkplate_Peripheral_Mode/Inkplate_Peripheral_Mode.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ void loop()
243243
sscanf(s + 3, "%d", &c);
244244
// sprintf(temp, "display.setDisplayMode(%s)\n", c == 0 ? "INKPLATE_1BIT" : "INKPLATE_3BIT");
245245
// Serial.print(temp);
246-
if (c == INKPLATE_1BIT)
246+
if (c == 1)
247247
display.selectDisplayMode(INKPLATE_1BIT);
248-
if (c == INKPLATE_3BIT)
248+
if (c == 3)
249249
display.selectDisplayMode(INKPLATE_3BIT);
250250
break;
251251

0 commit comments

Comments
 (0)