Skip to content

Commit 9f6d92b

Browse files
committed
Merge branch 'dev'
2 parents 026a0c5 + 9ca863e commit 9f6d92b

20 files changed

Lines changed: 60084 additions & 1233 deletions

File tree

examples/Inkplate10/Diagnostics/Inkplate10_Factory_Programming_VCOM/Inkplate10_Factory_Programming_VCOM.ino

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@
6464
// Create object on Inkplate library and set library to work in monochrome mode
6565
Inkplate display(INKPLATE_1BIT);
6666

67-
// We only store: provision marker + waveform number for UI / reselection.
68-
// Driver stores the actual VCOM and waveform data internally.
69-
int EEPROM_PROVISION_MARKER_ADDR = 0; // 170 => provisioned
70-
int EEPROM_WAVEFORM_NUM_ADDR = 1; // 1..5
67+
// Provision marker and waveform number for factory flow.
68+
// Addresses 0-75 are occupied by the waveformData struct written by setWaveform();
69+
// the marker and waveform number must live beyond that range to avoid collisions.
70+
int EEPROM_PROVISION_MARKER_ADDR = 76; // 170 => provisioned
71+
int EEPROM_WAVEFORM_NUM_ADDR = 77; // 1..5
7172

7273
// Peripheral mode variables and arrays (kept from original)
7374
#define BUFFER_SIZE 1000

examples/Inkplate10/Diagnostics/Inkplate10_Factory_Programming_VCOM/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const char sdCardTestStringLength = 100;
44
const char *testString = {"This is some test string..."};
55

66
// Change this to your WiFi
7-
const char *WSSID = {""};
8-
const char *WPASS = {""};
7+
const char *WSSID = {"Soldered-testingPurposes"};
8+
const char *WPASS = {"Testing443"};
99

1010
// Change this to your used slave device
11-
const uint8_t easyCDeviceAddress = 0x76;
11+
const uint8_t easyCDeviceAddress = 0x30;
1212

1313
// Test all peripherals
1414
void testPeripheral()

examples/Inkplate13SPECTRA/Diagnostics/Inkplate13SPECTRA_Factory_Programming/image.h

Lines changed: 60005 additions & 1201 deletions
Large diffs are not rendered by default.

examples/Inkplate13SPECTRA/Diagnostics/Inkplate13SPECTRA_Factory_Programming/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ static constexpr size_t sdCardTestStringLength = 100;
66
// Keep this short so it always fits comfortably
77
static const char *testString = "This is some test string...";
88

9-
static const char *WSSID = "";
10-
static const char *WPASS = "";
9+
static const char *WSSID = "Soldered-testingPurposes";
10+
static const char *WPASS = "Testing443";
1111

1212
// Change this to your used slave device
13-
static const uint8_t easyCDeviceAddress = 0x76;
13+
static const uint8_t easyCDeviceAddress = 0x30;
1414

1515
void testPeripheral()
1616
{

examples/Inkplate2/Diagnostics/Inkplate2_Factory_Programming/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
#include "Wire.h"
33

44
// Change this to your WiFi
5-
const char *WSSID = {""};
6-
const char *WPASS = {""};
5+
const char *WSSID = {"Soldered-testingPurposes"};
6+
const char *WPASS = {"Testing443"};
77

88
// Change this to your used slave device
9-
const uint8_t easyCDeviceAddress = 0x76;
9+
const uint8_t easyCDeviceAddress = 0x30;
1010

1111
// Test all peripherals
1212
void testPeripheral()

examples/Inkplate4TEMPERA/Diagnostics/Inkplate4TEMPERA_Factory_Programming_VCOM/Inkplate4TEMPERA_Factory_Programming_VCOM.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ void setup()
171171
if (display.setVCOM(vcomVoltage))
172172
{
173173
Serial.println("\nVCOM EEPROM PROGRAMMING OK\n");
174+
175+
// Mark the device as tested and provisioned so the tests
176+
// don't run again on the next boot
177+
EEPROM.write(EEPROMaddress, 170);
178+
EEPROM.commit();
174179
break;
175180
}
176181
else

examples/Inkplate4TEMPERA/Diagnostics/Inkplate4TEMPERA_Factory_Programming_VCOM/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
const char sdCardTestStringLength = 100;
44
const char *testString = {"This is some test string..."};
55

6-
const char *WSSID = {""};
7-
const char *WPASS = {""};
6+
const char *WSSID = {"Soldered-testingPurposes"};
7+
const char *WPASS = {"Testing443"};
88

99
// Change this to your used slave device
10-
const uint8_t easyCDeviceAddress = 0x76;
10+
const uint8_t easyCDeviceAddress = 0x30;
1111

1212
const int TOUCHSCREEN_TIMEOUT = 30;
1313
const int GESTURE_TIMEOUT = 30;

examples/Inkplate5/Diagnostics/Inkplate5_Factory_Programming_VCOM/Inkplate5_Factory_Programming_VCOM.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ void setup()
114114
if (display.setVCOM(vcomVoltage))
115115
{
116116
Serial.println("\nVCOM EEPROM PROGRAMMING OK\n");
117+
118+
// Mark the device as tested and provisioned so the tests
119+
// don't run again on the next boot
120+
EEPROM.write(EEPROMaddress, 170);
121+
EEPROM.commit();
117122
break;
118123
}
119124
else

examples/Inkplate5V2/Diagnostics/Inkplate5V2_Factory_Programming_VCOM/Inkplate5V2_Factory_Programming_VCOM.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ void setup()
171171
if (display.setVCOM(vcomVoltage))
172172
{
173173
Serial.println("\nVCOM EEPROM PROGRAMMING OK\n");
174+
175+
// Mark the device as tested and provisioned so the tests
176+
// don't run again on the next boot
177+
EEPROM.write(EEPROMaddress, 170);
178+
EEPROM.commit();
174179
break;
175180
}
176181
else
@@ -196,6 +201,7 @@ void setup()
196201
memset(commandBuffer, 0, BUFFER_SIZE);
197202

198203
// Print the initial image that remains on the screen
204+
showSplashScreen(vcomVoltage);
199205
}
200206

201207
void loop()

examples/Inkplate5V2/Diagnostics/Inkplate5V2_Factory_Programming_VCOM/test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
const char sdCardTestStringLength = 100;
44
const char *testString = {"This is some test string..."};
55

6-
const char *WSSID = {""};
7-
const char *WPASS = {""};
6+
const char *WSSID = {"Soldered-testingPurposes"};
7+
const char *WPASS = {"Testing443"};
88

99
// Change this to your used slave device
10-
const uint8_t easyCDeviceAddress = 0x76;
10+
const uint8_t easyCDeviceAddress = 0x30;
1111

1212
void testPeripheral()
1313
{

0 commit comments

Comments
 (0)