Skip to content

Commit 3365d16

Browse files
committed
Fixed compile tests for factory programming.
1 parent 78c7864 commit 3365d16

File tree

8 files changed

+107
-2
lines changed

8 files changed

+107
-2
lines changed

examples/Inkplate10/Diagnostics/Inkplate10_Factory_Programming_VCOM/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#if !defined(ARDUINO_INKPLATE10) || !defined(ARDUINO_INKPLATE10V2)
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -109,3 +112,15 @@ void loop()
109112
pixels.show();
110113
}
111114
}
115+
#else
116+
// Just to pass compile test.
117+
void setup()
118+
{
119+
120+
}
121+
122+
void loop()
123+
{
124+
125+
}
126+
#endif

examples/Inkplate2/Diagnostics/Inkplate2_Factory_Programming/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32-
// Block usage of this code on Inkplate2 board.
32+
// Block usage of this code on Inkplate boards.
3333
#ifndef ARDUINO_INKPLATE2
3434

3535
// Include a Wire library (for I2C communication)
@@ -114,7 +114,7 @@ void loop()
114114
}
115115

116116
#else
117-
// Just to pass compile test
117+
// Just to pass compile test.
118118
void setup()
119119
{
120120

examples/Inkplate4/Diagnostics/Inkplate4_Factory_Programming/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#ifndef ARDUINO_INKPLATE4
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -109,3 +112,15 @@ void loop()
109112
pixels.show();
110113
}
111114
}
115+
#else
116+
// Just to pass compile test.
117+
void setup()
118+
{
119+
120+
}
121+
122+
void loop()
123+
{
124+
125+
}
126+
#endif

examples/Inkplate5/Diagnostics/Inkplate5_Factory_Programming_VCOM/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#ifndef ARDUINO_INKPLATE5
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -110,3 +113,15 @@ void loop()
110113
pixels.show();
111114
}
112115
}
116+
#else
117+
// Just to pass compile test.
118+
void setup()
119+
{
120+
121+
}
122+
123+
void loop()
124+
{
125+
126+
}
127+
#endif

examples/Inkplate6/Diagnostics/Inkplate6_Factory_Programming_VCOM/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#if !defined(ARDUINO_ESP32_DEV) || !defined(ARDUINO_INKPLATE6V2)
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -109,3 +112,15 @@ void loop()
109112
pixels.show();
110113
}
111114
}
115+
#else
116+
// Just to pass compile test.
117+
void setup()
118+
{
119+
120+
}
121+
122+
void loop()
123+
{
124+
125+
}
126+
#endif

examples/Inkplate6COLOR/Diagnostics/Inkplate6COLOR_Factory_Programming/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#ifndef ARDUINO_INKPLATECOLOR
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -109,3 +112,15 @@ void loop()
109112
pixels.show();
110113
}
111114
}
115+
#else
116+
// Just to pass compile test.
117+
void setup()
118+
{
119+
120+
}
121+
122+
void loop()
123+
{
124+
125+
}
126+
#endif

examples/Inkplate6PLUS/Diagnostics/Inkplate6PLUS_Factory_Programming_VCOM/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#if !defined(ARDUINO_INKPLATE6PLUS) || !defined(ARDUINO_INKPLATE6PLUSV2)
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -109,3 +112,15 @@ void loop()
109112
pixels.show();
110113
}
111114
}
115+
#else
116+
// Just to pass compile test.
117+
void setup()
118+
{
119+
120+
}
121+
122+
void loop()
123+
{
124+
125+
}
126+
#endif

examples/Inkplate7/Diagnostics/Inkplate7_Factory_Programming/InkplateEasyCTester/InkplateEasyCTester.ino

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
* @authors Borna Biro for Soldered
3030
***************************************************/
3131

32+
// Block usage of this code on Inkplate boards.
33+
#ifndef ARDUINO_INKPLATE7
34+
3235
// Include a Wire library (for I2C communication)
3336
#include "Wire.h"
3437

@@ -109,3 +112,15 @@ void loop()
109112
pixels.show();
110113
}
111114
}
115+
#else
116+
// Just to pass compile test.
117+
void setup()
118+
{
119+
120+
}
121+
122+
void loop()
123+
{
124+
125+
}
126+
#endif

0 commit comments

Comments
 (0)