Skip to content

Commit 3f82eef

Browse files
committed
Added support for Inkplates that are missing second MCP
New Inkplates are shipped without second MCP I/O expander because of chip shortage. If Inkplate without second MCP I/O expander is programmed using this library, it will hang out on function that is setting it's pins to LOW state, so in this commit is added part of code which stops it.
1 parent 1769499 commit 3f82eef

File tree

83 files changed

+622
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+622
-0
lines changed

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Battery_Voltage_And_Temperature/Inkplate_Battery_Voltage_And_Temperature.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
// It is in same folder as this sketch. You can even open it (read it) by clicking on symbols.h tab in Arduino IDE
2626
Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW)
2727

28+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
29+
// otherwise your code could hang out when you send code to your Inkplate.
30+
// You can easily check if your Inkplate has second MCP by turning it over and
31+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
32+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
33+
//#define ONE_MCP_MODE
34+
2835
void setup()
2936
{
3037
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Bluetooth_Peripheral_Mode_Example/Inkplate_Bluetooth_Peripheral_Mode_Example.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ BluetoothSerial SerialBT;
2727
// Temporary buffer to send to Peripheral mode code
2828
char commandBuffer[BUFFER_SIZE + 1];
2929

30+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
31+
// otherwise your code could hang out when you send code to your Inkplate.
32+
// You can easily check if your Inkplate has second MCP by turning it over and
33+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
34+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
35+
//#define ONE_MCP_MODE
36+
3037
void setup() // Initialize everything
3138
{
3239
Serial.begin(115200);

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_EEPROM_Usage/Inkplate_EEPROM_Usage.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828

2929
Inkplate display(INKPLATE_1BIT); // Create object on Inkplate library and set library to work in monochrome mode
3030

31+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
32+
// otherwise your code could hang out when you send code to your Inkplate.
33+
// You can easily check if your Inkplate has second MCP by turning it over and
34+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
35+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
36+
//#define ONE_MCP_MODE
37+
3138
void setup()
3239
{
3340
display.begin(); // Init library (you should call this function ONLY ONCE)

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_EasyC/Inkplate_EasyC.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ Adafruit_BME680
3333
//(with no arguments sent to constructor, that means we are using I2C communication for BME680 sensor)
3434

3535
int n = 0; // Variable that keep track on how many times screen has been partially updated
36+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
37+
// otherwise your code could hang out when you send code to your Inkplate.
38+
// You can easily check if your Inkplate has second MCP by turning it over and
39+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
40+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
41+
//#define ONE_MCP_MODE
42+
3643
void setup()
3744
{
3845
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Faster_Display/Inkplate_Faster_Display.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
// beware it doesn't support partialUpdate yet
2020
Inkplate display(INKPLATE_1BIT);
2121

22+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
23+
// otherwise your code could hang out when you send code to your Inkplate.
24+
// You can easily check if your Inkplate has second MCP by turning it over and
25+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
26+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
27+
//#define ONE_MCP_MODE
28+
2229
void setup()
2330
{
2431
// Initialize the display and serial

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Low_Power/Inkplate_Low_Power.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ RTC_DATA_ATTR int slide = 0;
3737

3838
Inkplate display(INKPLATE_3BIT); // Create an object on Inkplate library and also set library into 3 Bit mode (gray)
3939

40+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
41+
// otherwise your code could hang out when you send code to your Inkplate.
42+
// You can easily check if your Inkplate has second MCP by turning it over and
43+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
44+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
45+
//#define ONE_MCP_MODE
46+
4047
void setup()
4148
{
4249
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_MCP23017_Expander/Inkplate_MCP23017_Expander.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636

3737
Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW)
3838

39+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
40+
// otherwise your code could hang out when you send code to your Inkplate.
41+
// You can easily check if your Inkplate has second MCP by turning it over and
42+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
43+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
44+
//#define ONE_MCP_MODE
45+
3946
void setup()
4047
{
4148
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_Partial_Update_With_Deep_Sleep/Inkplate_Partial_Update_With_Deep_Sleep.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
4040
RTC_DATA_ATTR int counter = 0;
4141
RTC_DATA_ATTR float decimal = PI;
4242

43+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
44+
// otherwise your code could hang out when you send code to your Inkplate.
45+
// You can easily check if your Inkplate has second MCP by turning it over and
46+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
47+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
48+
//#define ONE_MCP_MODE
49+
4350
void setup()
4451
{
4552
Serial.begin(115200);

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_RTC_Alarm_Deep_Sleep_Example/Inkplate_RTC_Alarm_Deep_Sleep_Example.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525
Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and also set library into 1-bit mode (BW)
2626

27+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
28+
// otherwise your code could hang out when you send code to your Inkplate.
29+
// You can easily check if your Inkplate has second MCP by turning it over and
30+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
31+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
32+
//#define ONE_MCP_MODE
33+
2734
void setup()
2835
{
2936
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

examples/Inkplate10/Advanced_Inkplate_Features/Inkplate_RTC_Alarm_Example/Inkplate_RTC_Alarm_Example.ino

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ uint8_t alarmSeconds = 40;
4141
uint8_t alarmWeekday = 4;
4242
uint8_t alarmDay = 11;
4343

44+
// If your Inkplate doesn't have external (or second) MCP I/O expander, you should uncomment next line,
45+
// otherwise your code could hang out when you send code to your Inkplate.
46+
// You can easily check if your Inkplate has second MCP by turning it over and
47+
// if there is missing chip near place where "MCP23017-2" is written, but if there is
48+
// chip soldered, you don't have to uncomment line and use external MCP I/O expander
49+
//#define ONE_MCP_MODE
50+
4451
void setup()
4552
{
4653
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)

0 commit comments

Comments
 (0)