Skip to content

Commit 8fc4b75

Browse files
committed
Hello World examples (first attempt)
1 parent c0bd6c4 commit 8fc4b75

File tree

9 files changed

+339
-0
lines changed

9 files changed

+339
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
Inkplate10_Hello_World example for Soldered Inkplate 10
3+
4+
For this example, you only need a USB cable and your Inkplate 10.
5+
Select "e-radionica Inkplate10" or "Soldered Inkplate10" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "e-radionica Inkplate10" or "Soldered Inkplate10" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing functions, fully compatible with Adafruit GFX.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
16+
In order to convert your images into a format compatible with Inkplate,
17+
use the Soldered Image Converter available at:
18+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
19+
*/
20+
21+
22+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
23+
#if !defined(ARDUINO_INKPLATE10) && !defined(ARDUINO_INKPLATE10V2)
24+
#error "Wrong board selection for this example, please select e-radionica Inkplate10 or Soldered Inkplate10 in the boards menu."
25+
#endif
26+
27+
#include "Inkplate.h" // Include the Inkplate library
28+
Inkplate display(INKPLATE_1BIT); // Create an Inkplate object for Inkplate6 FLICK
29+
30+
void setup() {
31+
display.begin(); // Initialize the display hardware
32+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
33+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
34+
display.setTextSize(6); // Set text size to 6 (default is 1)
35+
display.print("Hello World!"); // Print "Hello World!" at the set position
36+
display.display(); // Refresh the e-paper display to show changes
37+
}
38+
39+
void loop() {
40+
// No code needed here for this example
41+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
Inkplate2_Hello_World example for Soldered Inkplate 2
3+
4+
For this example, you only need a USB cable and your Inkplate 2.
5+
Select "Soldered Inkplate2" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "Soldered Inkplate2" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing function for Inkplate2.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
18+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
19+
#ifndef ARDUINO_INKPLATE2
20+
#error "Wrong board selection for this example, please select Soldered Inkplate2 in the boards menu."
21+
#endif
22+
23+
#include "Inkplate.h" // Include the Inkplate library
24+
Inkplate display; // Create an Inkplate object in monochrome mode
25+
26+
void setup() {
27+
display.begin(); // Initialize the display hardware
28+
display.clearDisplay(); // Clear the software frame buffer (does NOT clear the physical screen)
29+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
30+
display.setTextSize(2); // Set text size to 2 (default is 1)
31+
display.setTextColor(1); // Set text color to black (1 = black, 0 = white)
32+
display.print("Hello World!"); // Print "Hello World!" at the set position
33+
display.display(); // Refresh the e-paper display to show changes
34+
}
35+
36+
void loop() {
37+
// No code needed here for this example
38+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Inkplate2_Hello_World.ino example for Soldered Inkplate 2
3+
4+
For this example, you only need a USB cable and your Inkplate 2.
5+
Select "Soldered Inkplate2" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "Soldered Inkplate2" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing function for Inkplate2.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
18+
#ifndef ARDUINO_INKPLATE4TEMPERA
19+
#error "Wrong board selection for this example, please select Inkplate 4 TEMPERA in the boards menu."
20+
#endif
21+
22+
#include "Inkplate.h" // Include the Inkplate library
23+
Inkplate display(INKPLATE_3BIT); // Create an Inkplate object for Inkplate6 FLICK
24+
25+
void setup() {
26+
display.begin(); // Initialize the display hardware
27+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
28+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
29+
display.setTextSize(3); // Set text size to 3 (default is 1)
30+
display.setTextColor(BLACK); // Set text color to black (default is white)
31+
display.print("Hello World!"); // Print "Hello World!" at the set position
32+
display.display(); // Refresh the e-paper display to show changes
33+
}
34+
35+
void loop() {
36+
// No code needed here for this example
37+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
Inkplate2_Hello_World example for Soldered Inkplate 2
3+
4+
For this example, you only need a USB cable and your Inkplate 2.
5+
Select "Soldered Inkplate2" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "Soldered Inkplate2" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing function for Inkplate2.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
18+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
19+
#ifndef ARDUINO_INKPLATE5
20+
#error "Wrong board selection for this example, please select Soldered Inkplate5 in the boards menu."
21+
#endif
22+
23+
#include "Inkplate.h" // Include the Inkplate library
24+
Inkplate display(INKPLATE_3BIT); // Create an Inkplate object for Inkplate5V2
25+
26+
void setup() {
27+
display.begin(); // Initialize the display hardware
28+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
29+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
30+
display.setTextSize(8); // Set text size to 8 (default is 1)
31+
display.setTextColor(BLACK); // Set text color to black
32+
display.print("Hello World!"); // Print "Hello World!" at the set position
33+
display.display(); // Refresh the e-paper display to show changes
34+
}
35+
36+
void loop() {
37+
// No code needed here for this example
38+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
Inkplate5V2_Hello_World example for Soldered Inkplate 5 V2
3+
4+
For this example, you only need a USB-C cable and your Inkplate 5 V2.
5+
Select "Soldered Inkplate5 V2" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "Soldered Inkplate5 V2" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing functions, fully compatible with Adafruit GFX.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
18+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
19+
#ifndef ARDUINO_INKPLATE5V2
20+
#error "Wrong board selection for this example, please select Soldered Inkplate5V2 in the boards menu."
21+
#endif
22+
23+
#include "Inkplate.h" // Include the Inkplate library
24+
Inkplate display(INKPLATE_1BIT); // Create an Inkplate object for Inkplate5V2
25+
26+
void setup() {
27+
display.begin(); // Initialize the display hardware
28+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
29+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
30+
display.setTextSize(8); // Set text size to 8 (default is 1)
31+
display.setTextColor(BLACK); // Set text color to black
32+
display.print("Hello World!"); // Print "Hello World!" at the set position
33+
display.display(); // Refresh the e-paper display to show changes
34+
}
35+
36+
void loop() {
37+
// No code needed here for this example
38+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Inkplate6_Hello_World example for Soldered Inkplate 6
3+
4+
For this example, you only need a USB cable and your Inkplate 6.
5+
Select "e-radionica Inkplate6" or "Soldered Inkplate6" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "e-radionica Inkplate6" or "Soldered Inkplate6" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing functions, fully compatible with Adafruit GFX.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
18+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
19+
#if !defined(ARDUINO_ESP32_DEV) && !defined(ARDUINO_INKPLATE6V2)
20+
#error "Wrong board selection for this example, please select e-radionica Inkplate6 or Soldered Inkplate6 in the boards menu."
21+
#endif
22+
23+
#include "Inkplate.h" // Include the Inkplate library
24+
Inkplate display(INKPLATE_1BIT); // Create an Inkplate object for Inkplate6 FLICK
25+
26+
void setup() {
27+
display.begin(); // Initialize the display hardware
28+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
29+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
30+
display.setTextSize(4); // Set text size to 4 (default is 1)
31+
display.print("Hello World!"); // Print "Hello World!" at the set position
32+
display.display(); // Refresh the e-paper display to show changes
33+
}
34+
35+
void loop() {
36+
// No code needed here for this example
37+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
Inkplate6COLOR_Hello_World example for Soldered Inkplate 6COLOR
3+
4+
Select "Soldered Inkplate 6COLOR" from the Tools -> Board menu in Arduino IDE.
5+
Don't see the "Soldered Inkplate 6COLOR" option? Follow this tutorial to add it:
6+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
7+
8+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen using the Inkplate 6COLOR library.
9+
10+
Want to learn more about Inkplate? Visit www.inkplate.io
11+
Need support? Visit our forums: https://forum.soldered.com/
12+
24 April 2025 by Soldered
13+
*/
14+
15+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
16+
#ifndef ARDUINO_INKPLATECOLOR
17+
#error "Wrong board selection for this example, please select Soldered Inkplate 6COLOR in the boards menu."
18+
#endif
19+
20+
#include "Inkplate.h" // Include the Inkplate library
21+
Inkplate display; // Create an Inkplate object for Inkplate 6COLOR
22+
23+
void setup() {
24+
display.begin(); // Initialize the display hardware
25+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
26+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
27+
display.setTextSize(4); // Set text size to 4 (default is 1)
28+
display.setTextColor(INKPLATE_BLACK); // Set text color to black
29+
display.print("Hello World!"); // Print "Hello World!" at the set position
30+
display.display(); // Refresh the e-paper display to show changes
31+
}
32+
33+
void loop() {
34+
// No code needed here for this example
35+
}
36+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Inkplate6FLICK_Hello_World example for Soldered Inkplate 6FLICK
3+
4+
For this example, you only need a USB cable and your Inkplate 6FLICK.
5+
Select "Soldered Inkplate 6FLICK" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "e-radionica Inkplate 6FLICK" or "Soldered Inkplate 6FLICK" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing functions, fully compatible with Adafruit GFX.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
18+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
19+
#ifndef ARDUINO_INKPLATE6FLICK
20+
#error "Wrong board selection for this example, please select Soldered Inkplate 6 FLICK"
21+
#endif
22+
23+
#include "Inkplate.h" // Include the Inkplate library
24+
Inkplate display(INKPLATE_1BIT); // Create an Inkplate object for Inkplate6 FLICK
25+
26+
void setup() {
27+
display.begin(); // Initialize the display hardware
28+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
29+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
30+
display.setTextSize(4); // Set text size to 4 (default is 1)
31+
display.print("Hello World!"); // Print "Hello World!" at the set position
32+
display.display(); // Refresh the e-paper display to show changes
33+
}
34+
35+
void loop() {
36+
// No code needed here for this example
37+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Inkplate6PLUS_Hello_World example for Soldered Inkplate 6PLUS
3+
4+
For this example, you only need a USB cable and your Inkplate 6PLUS.
5+
Select "e-radionica Inkplate 6Plus" or "Soldered Inkplate 6Plus" from the Tools -> Board menu in Arduino IDE.
6+
Don't see the "e-radionica Inkplate 6Plus" or "Soldered Inkplate 6Plus" option? Follow this tutorial to add it:
7+
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
8+
9+
This example demonstrates the most basic usage: displaying "Hello World!" on the screen.
10+
It uses the Inkplate library's built-in text drawing functions, fully compatible with Adafruit GFX.
11+
12+
Want to learn more about Inkplate? Visit www.inkplate.io
13+
Need support? Visit our forums: https://forum.soldered.com/
14+
24 April 2025 by Soldered
15+
*/
16+
17+
18+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
19+
#if !defined(ARDUINO_INKPLATE6PLUS) && !defined(ARDUINO_INKPLATE6PLUSV2)
20+
#error "Wrong board selection for this example, please select e-radionica Inkplate 6Plus or Soldered Inkplate 6Plus in the boards menu."
21+
#endif
22+
23+
#include "Inkplate.h" // Include the Inkplate library
24+
Inkplate display(INKPLATE_1BIT); // Create an Inkplate object for Inkplate 6PLUS
25+
26+
void setup() {
27+
display.begin(); // Initialize the display hardware
28+
display.clearDisplay(); // Clear the frame buffer (does NOT clear the physical screen)
29+
display.setCursor(10, 10); // Set the text position to (10, 10) pixels
30+
display.setTextSize(4); // Set text size to 4 (default is 1)
31+
display.print("Hello World!"); // Print "Hello World!" at the set position
32+
display.display(); // Refresh the e-paper display to show changes
33+
}
34+
35+
void loop() {
36+
// No code needed here for this example
37+
}

0 commit comments

Comments
 (0)