Skip to content

Commit 2813e7e

Browse files
committed
Fixed some typos
1 parent 6254475 commit 2813e7e

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

examples/Inkplate10/Diagnostics/Inkplate10_Factory_Programming_VCOM/Inkplate10_Factory_Programming_VCOM.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* Tests will also be done, to pass all tests:
1515
* - Edit the WiFi information in test.cpp.
16-
* - Connect a slave device via EasyC on address 0x28 (you may change this in test.cpp also).
16+
* - Connect a slave device via EasyC on address 0x30 (you may change this in test.cpp also).
1717
* In the InkplateEasyCTester folder, you can find the code for uploading to Dasduino Core
1818
* or Dasduino ConnectPlus to convert Dasduino to an I2C slave device for testing an easyC connector
1919
* if you don't have a device with address 0x30.

examples/Inkplate10/Diagnostics/Inkplate10_RTC_Calibration/Inkplate10_RTC_Calibration.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
2626
#define REFRESH_DELAY 1000 // Delay between refreshes
2727
unsigned long time1; // Time for measuring refresh in millis
2828

29+
#define MAX_PARTIAL_UPDATES 9 // How many partial updates to do before a full refresh
30+
2931
// Variable that keeps count on how much screen has been partially updated
3032
int n = 0;
3133

@@ -60,7 +62,6 @@ void setup()
6062
// The real offset depends on the mode and it is equal to the: offset in ppm for specific mode * offset value in
6163
// decimal. For example: mode 0 (4.34 ppm), offset value 15 = + 65.1 ppm every 2 hours
6264
// See 8.2.3 in the datasheet for more details
63-
6465
display.rtcSetClockOffset(1, -63);
6566

6667
// How to calculate this offset?
@@ -126,7 +127,7 @@ void loop()
126127
display.setCursor(480, 380); // Set position of the text
127128
printTime(hours, minutes, seconds); // Print the time on screen
128129

129-
if (n > 9) // Check if you need to do full refresh or you can do partial update
130+
if (n > MAX_PARTIAL_UPDATES) // Check if you need to do full refresh or you can do partial update
130131
{
131132
display.display(true); // Do a full refresh
132133
n = 0;

examples/Inkplate5/Diagnostics/Inkplate5_Factory_Programming_VCOM/Inkplate5_Factory_Programming_VCOM.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void showSplashScreen(float vComVoltage)
185185
display.drawBitmap3Bit(0, 0, demo_image, demo_image_w, demo_image_h);
186186
display.setTextColor(0, 7);
187187
display.setTextSize(1);
188-
display.setCursor(5, 583);
188+
display.setCursor(5, 516);
189189
display.print(vComVoltage, 2);
190190
display.print("V");
191191
display.display();

examples/Inkplate5/Diagnostics/Inkplate5_RTC_Calibration/Inkplate5_RTC_Calibration.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
2525
#define REFRESH_DELAY 1000 // Delay between refreshes
2626
unsigned long time1; // Time for measuring refresh in millis
2727

28+
#define MAX_PARTIAL_UPDATES 9 // How many partial updates to do before a full refresh
29+
2830
// Variable that keeps count on how much screen has been partially updated
2931
int n = 0;
3032

@@ -125,7 +127,7 @@ void loop()
125127
display.setCursor(370, 260); // Set position of the text
126128
printTime(hours, minutes, seconds); // Print the time on screen
127129

128-
if (n > 9) // Check if you need to do full refresh or you can do partial update
130+
if (n > MAX_PARTIAL_UPDATES) // Check if you need to do full refresh or you can do partial update
129131
{
130132
display.display(true); // Do a full refresh
131133
n = 0;

examples/Inkplate6/Diagnostics/Inkplate6_RTC_Calibration/Inkplate6_RTC_Calibration.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
2626
#define REFRESH_DELAY 1000 // Delay between refreshes
2727
unsigned long time1; // Time for measuring refresh in millis
2828

29+
#define MAX_PARTIAL_UPDATES 9 // How many partial updates to do before a full refresh
30+
2931
// Variable that keeps count on how much screen has been partially updated
3032
int n = 0;
3133

@@ -127,7 +129,7 @@ void loop()
127129
display.setCursor(270, 270); // Set position of the text
128130
printTime(hours, minutes, seconds); // Print the time on screen
129131

130-
if (n > 9) // Check if you need to do full refresh or you can do partial update
132+
if (n > MAX_PARTIAL_UPDATES) // Check if you need to do full refresh or you can do partial update
131133
{
132134
display.display(true); // Do a full refresh
133135
n = 0;

examples/Inkplate6PLUS/Diagnostics/Inkplate6PLUS_RTC_Calibration/Inkplate6PLUS_RTC_Calibration.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Inkplate display(INKPLATE_1BIT); // Create an object on Inkplate library and als
2525
#define REFRESH_DELAY 1000 // Delay between refreshes
2626
unsigned long time1; // Time for measuring refresh in millis
2727

28+
#define MAX_PARTIAL_UPDATES 9 // How many partial updates to do before a full refresh
29+
2830
// Variable that keeps count on how much screen has been partially updated
2931
int n = 0;
3032

@@ -126,7 +128,7 @@ void loop()
126128
display.setCursor(380, 360); // Set position of the text
127129
printTime(hours, minutes, seconds); // Print the time on screen
128130

129-
if (n > 9) // Check if you need to do full refresh or you can do partial update
131+
if (n > MAX_PARTIAL_UPDATES) // Check if you need to do full refresh or you can do partial update
130132
{
131133
display.display(true); // Do a full refresh
132134
n = 0;

0 commit comments

Comments
 (0)