Skip to content

Commit 376c4e9

Browse files
committed
Added test to factory programming VCOM
1 parent f26404d commit 376c4e9

File tree

4 files changed

+12
-33
lines changed

4 files changed

+12
-33
lines changed

examples/Inkplate10/Others/Inkplate_Factory_Programming_VCOM/Inkplate_Factory_Programming_VCOM.ino

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ struct waveformData waveformEEPROM;
4848

4949
int currentWaveform = 0;
5050

51-
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
52-
// otherwise your code could hang out when you send code to your Inkplate.
53-
// You can easily check if your Inkplate has second MCP by turning it over and
54-
// if there is missing chip near place where "MCP23017-2" is written, but if there is
55-
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
56-
5751
void setup()
5852
{
5953
Serial.begin(115200);
@@ -506,15 +500,14 @@ void test()
506500
Serial.println("MCP /2 not found");
507501
}
508502

509-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, HIGH);
510-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, HIGH);
503+
display.einkOn();
504+
505+
delay(200);
511506

512507
Wire.beginTransmission(0x48);
513508

514509
if (Wire.endTransmission() == 0)
515510
{
516-
Serial.println("TPS found");
517-
518511
if (display.readPowerGood())
519512
{
520513
Serial.println("TPS working!");

examples/Inkplate5/Others/Inkplate_Factory_Programming_VCOM/Inkplate_Factory_Programming_VCOM.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,14 @@ void test()
445445
Serial.println("MCP /2 not found");
446446
}
447447

448-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, HIGH);
449-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, HIGH);
448+
display.einkOn();
450449

451450
Wire.beginTransmission(0x48);
452451

452+
delay(200);
453+
453454
if (Wire.endTransmission() == 0)
454455
{
455-
Serial.println("TPS found");
456-
457456
if (display.readPowerGood())
458457
{
459458
Serial.println("TPS working!");
@@ -468,8 +467,6 @@ void test()
468467
{
469468
Serial.println("TPS not found!");
470469
}
471-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, LOW);
472-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, LOW);
473470

474471
delay(5000);
475472

examples/Inkplate6/Others/Inkplate_Factory_Programming_VCOM/Inkplate_Factory_Programming_VCOM.ino

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -451,15 +451,14 @@ void test()
451451
Serial.println("MCP /2 not found");
452452
}
453453

454-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, HIGH);
455-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, HIGH);
454+
display.einkOn();
456455

457456
Wire.beginTransmission(0x48);
458457

458+
delay(200);
459+
459460
if (Wire.endTransmission() == 0)
460461
{
461-
Serial.println("TPS found");
462-
463462
if (display.readPowerGood())
464463
{
465464
Serial.println("TPS working!");
@@ -474,8 +473,6 @@ void test()
474473
{
475474
Serial.println("TPS not found!");
476475
}
477-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, LOW);
478-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, LOW);
479476

480477
delay(5000);
481478

examples/Inkplate6PLUS/Others/Inkplate_Factory_Programming_VCOM/Inkplate_Factory_Programming_VCOM.ino

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ char strTemp[2001];
2121
const char sdCardTestStringLength = 100;
2222
const char *testString = {"This is some test string..."};
2323

24-
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
25-
// otherwise your code could hang out when you send code to your Inkplate.
26-
// You can easily check if your Inkplate has second MCP by turning it over and
27-
// if there is missing chip near place where "MCP23017-2" is written, but if there is
28-
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
29-
3024
void setup()
3125
{
3226
display.begin();
@@ -464,14 +458,14 @@ void test()
464458
Serial.println("MCP /2 not found");
465459
}
466460

467-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, HIGH);
468-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, HIGH);
461+
display.einkOn();
469462

470463
Wire.beginTransmission(0x48);
471464

465+
delay(200);
466+
472467
if (Wire.endTransmission() == 0)
473468
{
474-
Serial.println("TPS found");
475469

476470
if (display.readPowerGood())
477471
{
@@ -487,8 +481,6 @@ void test()
487481
{
488482
Serial.println("TPS not found!");
489483
}
490-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, WAKEUP, LOW);
491-
display.digitalWriteInternal(MCP23017_INT_ADDR, mcpRegsInt, PWRUP, LOW);
492484

493485
delay(5000);
494486

0 commit comments

Comments
 (0)