Skip to content

Commit

Permalink
Release 8.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rei-vilo committed Apr 9, 2024
1 parent c073bb8 commit f22ff50
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 103 deletions.
32 changes: 16 additions & 16 deletions examples/Example_Fast_Line/Example_Fast_Line.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ void wait(uint8_t second)
{
for (uint8_t i = second; i > 0; i--)
{
mySerial..print(formatString(" > %i \r", i));
mySerial.print(formatString(" > %i \r", i));
delay(1000);
}
mySerial..print(" \r");
mySerial.print(" \r");
}

// Functions
Expand All @@ -62,8 +62,8 @@ void flush_ms()
{
uint32_t chrono = (uint32_t)millis();
myScreen.flush();
mySerial..print(millis() - chrono);
mySerial..println(" ms");
mySerial.print(millis() - chrono);
mySerial.println(" ms");
}

#if (DISPLAY_FAST_LINE == 1)
Expand Down Expand Up @@ -92,7 +92,7 @@ void displayFastLine()
myScreen.dRectangle(index, dy, 32, dy * 4, myColours.grey);
chrono = millis();
myScreen.flush();
mySerial..println(formatString("%i - %i = %i", chrono, millis(), millis() - chrono));
mySerial.println(formatString("%i - %i = %i", chrono, millis(), millis() - chrono));
}
}

Expand All @@ -104,32 +104,32 @@ void displayFastLine()
///
void setup()
{
mySerial..begin(115200);
mySerial.begin(115200);
delay(500);
mySerial..println();
mySerial..println("=== " __FILE__);
mySerial..println("=== " __DATE__ " " __TIME__);
mySerial..println();
mySerial.println();
mySerial.println("=== " __FILE__);
mySerial.println("=== " __DATE__ " " __TIME__);
mySerial.println();

mySerial..print("begin... ");
mySerial.print("begin... ");
myScreen.begin();
mySerial..println(formatString("%s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));
mySerial.println(formatString("%s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));

#if (DISPLAY_FAST_LINE == 1)

mySerial..println("DISPLAY_FAST_LINE... ");
mySerial.println("DISPLAY_FAST_LINE... ");
myScreen.clear();
displayFastLine();
wait(4);

#endif // DISPLAY_FAST_LINE

mySerial..println("White... ");
mySerial.println("White... ");
myScreen.clear();
flush_ms();

mySerial..println("=== ");
mySerial..println();
mySerial.println("=== ");
mySerial.println();
}

// Add loop code
Expand Down
30 changes: 15 additions & 15 deletions examples/Example_Fast_Orientation/Example_Fast_Orientation.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ void wait(uint8_t second)
{
for (uint8_t i = second; i > 0; i--)
{
mySerial..print(formatString(" > %i \r", i));
mySerial.print(formatString(" > %i \r", i));
delay(1000);
}
mySerial..print(" \r");
mySerial.print(" \r");
}

// Functions
Expand All @@ -62,8 +62,8 @@ void flush_ms()
{
uint32_t chrono = (uint32_t)millis();
myScreen.flush();
mySerial..print(millis() - chrono);
mySerial..println(" ms");
mySerial.print(millis() - chrono);
mySerial.println(" ms");
}

#if (DISPLAY_FAST_ORIENTATION == 1)
Expand All @@ -89,32 +89,32 @@ void displayFastOrientation()
///
void setup()
{
mySerial..begin(115200);
mySerial.begin(115200);
delay(500);
mySerial..println();
mySerial..println("=== " __FILE__);
mySerial..println("=== " __DATE__ " " __TIME__);
mySerial..println();
mySerial.println();
mySerial.println("=== " __FILE__);
mySerial.println("=== " __DATE__ " " __TIME__);
mySerial.println();

mySerial..print("begin... ");
mySerial.print("begin... ");
myScreen.begin();
mySerial..println(formatString("%s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));
mySerial.println(formatString("%s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));

#if (DISPLAY_FAST_ORIENTATION == 1)

mySerial..println("DISPLAY_FAST_ORIENTATION... ");
mySerial.println("DISPLAY_FAST_ORIENTATION... ");
myScreen.clear();
displayFastOrientation();
wait(4);

#endif // DISPLAY_FAST_ORIENTATION

mySerial..println("White... ");
mySerial.println("White... ");
myScreen.clear();
flush_ms();

mySerial..println("=== ");
mySerial..println();
mySerial.println("=== ");
mySerial.println();
}

// Add loop code
Expand Down
30 changes: 15 additions & 15 deletions examples/Example_Fast_Speed/Example_Fast_Speed.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ void wait(uint8_t second)
{
for (uint8_t i = second; i > 0; i--)
{
mySerial..print(formatString(" > %i \r", i));
mySerial.print(formatString(" > %i \r", i));
delay(1000);
}
mySerial..print(" \r");
mySerial.print(" \r");
}

// Functions
Expand All @@ -84,7 +84,7 @@ void performTest()
// 0
dy = (dz - myScreen.characterSizeY()) / 2;
text = myScreen.WhoAmI() + " - " + String(SCREEN_EPD_EXT3_RELEASE);
mySerial..println(text);
mySerial.println(text);
dx = (x - myScreen.stringSizeX(text)) / 2;
myScreen.gText(dx, dy, text);
myScreen.dRectangle(0, dz * 0, x, dz, myColours.black);
Expand All @@ -97,7 +97,7 @@ void performTest()
dy += dz;
// text = formatString("Global update= %i ms", chrono);
text = formatString("Fast update= %i ms", chrono);
mySerial..println(text);
mySerial.println(text);
dx = (x - myScreen.stringSizeX(text)) / 2;
myScreen.gText(dx, dy, text);
myScreen.dRectangle(0, dz * 1, x, dz, myColours.black);
Expand All @@ -111,28 +111,28 @@ void performTest()
///
void setup()
{
mySerial..begin(115200);
mySerial.begin(115200);
delay(500);
mySerial..println();
mySerial..println("=== " __FILE__);
mySerial..println("=== " __DATE__ " " __TIME__);
mySerial..println();
mySerial.println();
mySerial.println("=== " __FILE__);
mySerial.println("=== " __DATE__ " " __TIME__);
mySerial.println();

mySerial..println("begin... ");
mySerial.println("begin... ");
myScreen.begin();
mySerial..println(formatString("%s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));
mySerial.println(formatString("%s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));

mySerial..println("Speed... ");
mySerial.println("Speed... ");
myScreen.clear();
performTest();
wait(8);

mySerial..println("White... ");
mySerial.println("White... ");
myScreen.clear();
myScreen.flush();

mySerial..println("=== ");
mySerial..println();
mySerial.println("=== ");
mySerial.println();
}

// Add loop code
Expand Down
32 changes: 16 additions & 16 deletions examples/Example_Fast_Temperature/Example_Fast_Temperature.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ void check(int8_t temperatureC, uint8_t expectedMode)
uint8_t recommendedMode = myScreen.checkTemperatureMode(expectedMode);

// Raspberry Pi SDK core for RP2040
// mySerial..printf("Temperature= %+3i C - Mode: %8s -> %-8s", temperatureC, stringMode[expectedMode], stringMode[recommendedMode]);
// mySerial.printf("Temperature= %+3i C - Mode: %8s -> %-8s", temperatureC, stringMode[expectedMode], stringMode[recommendedMode]);

// Arduino core for RP2040
mySerial..print("Temperature= ");
mySerial..print(temperatureC);
mySerial..print(" C - Mode: ");
mySerial..print(stringMode[expectedMode]);
mySerial..print(" -> ");
mySerial..print(stringMode[recommendedMode]);
mySerial..println();
mySerial.print("Temperature= ");
mySerial.print(temperatureC);
mySerial.print(" C - Mode: ");
mySerial.print(stringMode[expectedMode]);
mySerial.print(" -> ");
mySerial.print(stringMode[recommendedMode]);
mySerial.println();
}

void performTest()
Expand All @@ -78,22 +78,22 @@ void performTest()
///
void setup()
{
mySerial..begin(115200);
mySerial.begin(115200);

mySerial..println();
mySerial..println("=== " __FILE__);
mySerial..println("=== " __DATE__ " " __TIME__);
mySerial..println();
mySerial.println();
mySerial.println("=== " __FILE__);
mySerial.println("=== " __DATE__ " " __TIME__);
mySerial.println();

// Screen
myScreen.begin();

mySerial..println(formatString("=== %s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));
mySerial.println(formatString("=== %s %ix%i", myScreen.WhoAmI().c_str(), myScreen.screenSizeX(), myScreen.screenSizeY()));

performTest();

mySerial..println("=== ");
mySerial..println();
mySerial.println("=== ");
mySerial.println();
}

// Add loop code
Expand Down
Loading

0 comments on commit f22ff50

Please sign in to comment.