Skip to content

Commit 22dd021

Browse files
committed
Updated the library
- Updated examples with Inkplate Image Converter - Migrated the image bytes to a separate header file and included them in the examples - Fixed compile tests - Updated Linter version
1 parent a361fb2 commit 22dd021

File tree

94 files changed

+1476
-1132
lines changed

Some content is hidden

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

94 files changed

+1476
-1132
lines changed

examples/Inkplate10/Advanced/DeepSleep/Inkplate10_Simple_Deep_Sleep/Inkplate10_Simple_Deep_Sleep.ino

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
Want to learn more about Inkplate? Visit www.inkplate.io
1616
Looking to get support? Write on our forums: https://forum.soldered.com/
1717
11 February 2021 by Soldered
18+
19+
In order to convert your images into a format compatible with Inkplate
20+
use the Soldered Image Converter available at:
21+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1822
*/
1923

2024
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate10/Advanced/Other/Inkplate10_Read_Battery_Voltage/Inkplate10_Read_Battery_Voltage.ino

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
Want to learn more about Inkplate? Visit www.inkplate.io
1111
Looking to get support? Write on our forums: https://forum.soldered.com/
1212
23 January 2023 by Soldered
13+
14+
In order to convert your images into a format compatible with Inkplate
15+
use the Soldered Image Converter available at:
16+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1317
*/
1418

1519
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate10/Advanced/Other/Inkplate10_Read_Temperature/Inkplate10_Read_Temperature.ino

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
Want to learn more about Inkplate? Visit www.inkplate.io
1212
Looking to get support? Write on our forums: https://forum.soldered.com/
1313
23 January 2023 by Soldered
14+
15+
In order to convert your images into a format compatible with Inkplate
16+
use the Soldered Image Converter available at:
17+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1418
*/
1519

1620
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate10/Basic/Inkplate10_Black_And_White/Inkplate10_Black_And_White.ino

+7-224
Large diffs are not rendered by default.

examples/Inkplate10/Basic/Inkplate10_Black_And_White/logo.h

+229
Large diffs are not rendered by default.

examples/Inkplate10/Basic/Inkplate10_Grayscale/image.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
//Array that holds data for grayscale image of 500x332 pixels. You can convert your own image using Inkplate Image Converter.
2-
//Image source: https://www.peakpx.com/583083/grayscale-photo-of-lighthouse
1+
/*
2+
In order to convert your images into a format compatible with Inkplate
3+
use the Soldered Image Converter available at:
4+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
5+
*/
36
const uint8_t picture1[] = {
47
0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x99, 0x98, 0x88, 0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x98, 0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xab, 0xbb, 0xbb, 0xbb, 0xbb, 0xbc, 0xcb, 0xbc, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xbb, 0xba, 0xaa, 0xaa, 0x99, 0x99, 0x89, 0x88, 0x88, 0x88, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x66, 0x66, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x78, 0x88, 0x87, 0x88, 0x88, 0x88, 0x88, 0x99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, 0x77, 0x87, 0x77, 0x77, 0x77, 0x77, 0x77, 0x76, 0x67, 0x77, 0x88, 0x77, 0x77, 0x66, 0x66,

examples/Inkplate10/Projects/Inkplate10_Daily_Weather_Station/Inkplate10_Daily_Weather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
Want to learn more about Inkplate? Visit www.inkplate.io
1616
Looking to get support? Write on our forums: https://forum.soldered.com/
1717
11 February 2021 by Soldered
18+
19+
In order to convert your images into a format compatible with Inkplate
20+
use the Soldered Image Converter available at:
21+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1822
*/
1923

2024
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate10/Projects/Inkplate10_Hourly_Weather_Station/Inkplate10_Hourly_Weather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
Want to learn more about Inkplate? Visit www.inkplate.io
1616
Looking to get support? Write on our forums: https://forum.soldered.com/
1717
11 February 2021 by Soldered
18+
19+
In order to convert your images into a format compatible with Inkplate
20+
use the Soldered Image Converter available at:
21+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1822
*/
1923

2024
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate10/Projects/Inkplate10_OpenWeather_Station/Inkplate10_OpenWeather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
11 February 2021 by Soldered
1818
1919
Code for Moonphase and moon fonts taken from here: https://learn.adafruit.com/epaper-weather-station/arduino-setup
20+
21+
In order to convert your images into a format compatible with Inkplate
22+
use the Soldered Image Converter available at:
23+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2024
*/
2125

2226
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate10/Projects/Inkplate10_Youtube_Subscriber_Counter/Inkplate10_Youtube_Subscriber_Counter.ino

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
Want to learn more about Inkplate? Visit www.inkplate.io
2020
Looking to get support? Write on our forums: https://forum.soldered.com/
2121
16 Aug 2023 by Soldered
22+
23+
In order to convert your images into a format compatible with Inkplate
24+
use the Soldered Image Converter available at:
25+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2226
*/
2327

2428
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate2/Advanced/DeepSleep/Inkplate2_Simple_Deep_Sleep/Inkplate2_Simple_Deep_Sleep.ino

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
Want to learn more about Inkplate? Visit www.inkplate.io
1515
Looking to get support? Write on our forums: https://forum.soldered.com/
1616
29 March 2022 by Soldered
17+
18+
In order to convert your images into a format compatible with Inkplate
19+
use the Soldered Image Converter available at:
20+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1721
*/
1822

1923
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate2/Advanced/Other/Inkplate2_Picture_From_RAM/Inkplate2_Picture_From_RAM.ino

+9-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
Inkplate will change content on the screen every 10 seconds and go
1010
into deep sleep mode after showing three images.
1111
12+
In order to convert your images into a format compatible with Inkplate
13+
use the Soldered Image Converter available at:
14+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
15+
1216
Want to learn more about Inkplate? Visit www.inkplate.io
1317
Looking to get support? Write on our forums: https://forum.soldered.com/
1418
24 November 2022 by soldered.com
@@ -24,9 +28,11 @@
2428
#include "picture1.h" // Include .h files of 3 pictures. All three pictures were converted using Inkplate Image Converter and have resolution of 212x104 picels
2529
#include "picture2.h"
2630
#include "picture3.h" // This are headers in which are saved pictures that needs to be stored in RAM for showing.
27-
// Any picture (in any format) can be converted in this type of header on this link:
28-
// https://solderedelectronics.github.io/Inkplate-image-converter/ just choose settings for your Inkplate
29-
// and additional settings like dither and bit mode.
31+
/*
32+
In order to convert your images into a format compatible with Inkplate
33+
use the Soldered Image Converter available at:
34+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
35+
*/
3036

3137

3238
Inkplate display; // Create display object

examples/Inkplate2/Projects/Inkplate2_Daily_Weather_Station/Inkplate2_Daily_Weather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
Want to learn more about Inkplate? Visit www.inkplate.io
1818
Looking to get support? Write on our forums: https://forum.soldered.com/
1919
2 January 2023 by Soldered
20+
21+
In order to convert your images into a format compatible with Inkplate
22+
use the Soldered Image Converter available at:
23+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2024
*/
2125

2226
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate2/Projects/Inkplate2_Hourly_Weather_Station/Inkplate2_Hourly_Weather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
Want to learn more about Inkplate? Visit www.inkplate.io
1616
Looking to get support? Write on our forums: https://forum.soldered.com/
1717
5 April 2022 by e-radionica.com
18+
19+
In order to convert your images into a format compatible with Inkplate
20+
use the Soldered Image Converter available at:
21+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1822
*/
1923

2024
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate2/Projects/Inkplate2_Youtube_Subscriber_Counter/Inkplate2_Youtube_Subscriber_Counter.ino

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
Want to learn more about Inkplate? Visit www.inkplate.io
2020
Looking to get support? Write on our forums: https://forum.soldered.com/
2121
7 April 2022 by Soldered
22+
23+
In order to convert your images into a format compatible with Inkplate
24+
use the Soldered Image Converter available at:
25+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2226
*/
2327

2428
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4/Advanced/DeepSleep/Inkplate4_Simple_Deep_Sleep/Inkplate4_Simple_Deep_Sleep.ino

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
Want to learn more about Inkplate? Visit www.inkplate.io
1717
Looking to get support? Write on our forums: https://forum.soldered.com/
1818
5 April 2023 by Soldered
19+
20+
In order to convert your images into a format compatible with Inkplate
21+
use the Soldered Image Converter available at:
22+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1923
*/
2024

2125
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4/Advanced/Other/Inkplate4_Read_Battery_Voltage/Inkplate4_Read_Battery_Voltage.ino

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
Want to learn more about Inkplate? Visit www.inkplate.io
1111
Looking to get support? Write on our forums: https://forum.soldered.com/
1212
4 April 2023 by Soldered
13+
14+
In order to convert your images into a format compatible with Inkplate
15+
use the Soldered Image Converter available at:
16+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1317
*/
1418

1519
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4/Projects/Inkplate4_Daily_Weather_Station/Inkplate4_Daily_Weather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
Want to learn more about Inkplate? Visit www.inkplate.io
2121
Looking to get support? Write on our forums: https://forum.soldered.com/
2222
11 April 2023 by Soldered
23+
24+
In order to convert your images into a format compatible with Inkplate
25+
use the Soldered Image Converter available at:
26+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2327
*/
2428

2529
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4/Projects/Inkplate4_Hourly_Weather_Station/Inkplate4_Hourly_Weather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
Want to learn more about Inkplate? Visit www.inkplate.io
2323
Looking to get support? Write on our forums: https://forum.soldered.com/
2424
11 April 2023 by Soldered
25+
26+
In order to convert your images into a format compatible with Inkplate
27+
use the Soldered Image Converter available at:
28+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2529
*/
2630

2731
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4/Projects/Inkplate4_OpenWeather_Station/Inkplate4_OpenWeather_Station.ino

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
4 April 2023 by Soldered
2424
2525
Code for Moonphase and moon fonts taken from here: https://learn.adafruit.com/epaper-weather-station/arduino-setup
26+
27+
In order to convert your images into a format compatible with Inkplate
28+
use the Soldered Image Converter available at:
29+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2630
*/
2731

2832
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4/Projects/Inkplate4_Youtube_Subscriber_Counter/Inkplate4_Youtube_Subscriber_Counter.ino

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
Want to learn more about Inkplate? Visit www.inkplate.io
2020
Looking to get support? Write on our forums: https://forum.soldered.com/
2121
31 July 2023 by Soldered
22+
23+
In order to convert your images into a format compatible with Inkplate
24+
use the Soldered Image Converter available at:
25+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
2226
*/
2327

2428
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4TEMPERA/Advanced/DeepSleep/Inkplate4TEMPERA_Simple_Deep_Sleep/Inkplate4TEMPERA_Simple_Deep_Sleep.ino

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
Want to learn more about Inkplate? Visit www.inkplate.io
1616
Looking to get support? Write on our forums: https://forum.soldered.com/
1717
16 July 2023 by Soldered
18+
19+
In order to convert your images into a format compatible with Inkplate
20+
use the Soldered Image Converter available at:
21+
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
1822
*/
1923

2024
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them

examples/Inkplate4TEMPERA/Advanced/SD/Inkplate4TEMPERA_SD_Pictures/Inkplate4TEMPERA_SD_Pictures.ino

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
Want to learn more about Inkplate? Visit www.inkplate.io
1616
Looking to get support? Write on our forums: https://forum.soldered.com/
17+
1718
24 July 2023 by Soldered
1819
*/
1920

examples/Inkplate4TEMPERA/Advanced/Sensors/Inkplate4TEMPERA_APDS9960/background.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
const uint8_t background[] PROGMEM = {
24
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
35
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x0,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,

0 commit comments

Comments
 (0)