Skip to content

Commit

Permalink
Updated the library
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
koderchina committed Sep 23, 2024
1 parent a361fb2 commit 22dd021
Show file tree
Hide file tree
Showing 94 changed files with 1,476 additions and 1,132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
11 February 2021 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
23 January 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
23 January 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

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

Large diffs are not rendered by default.

229 changes: 229 additions & 0 deletions examples/Inkplate10/Basic/Inkplate10_Black_And_White/logo.h

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions examples/Inkplate10/Basic/Inkplate10_Grayscale/image.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//Array that holds data for grayscale image of 500x332 pixels. You can convert your own image using Inkplate Image Converter.
//Image source: https://www.peakpx.com/583083/grayscale-photo-of-lighthouse
/*
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/
const uint8_t picture1[] = {
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, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0xa9, 0x99, 0x99, 0xaa, 0xab, 0xba, 0xaa, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xbb, 0xbb, 0xbc, 0xcc, 0xcc, 0xcb, 0xbb, 0xbb, 0xbb, 0xaa, 0xaa, 0x9a, 0xaa, 0xaa, 0xaa, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa, 0x99, 0x99, 0x98, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x88, 0x89, 0x88, 0x88, 0x88, 0x88, 0x88, 0x99, 0x88, 0x88, 0x88, 0x89, 0x99, 0x99, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xba, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xa9, 0x9a, 0xaa, 0xaa, 0xba, 0xaa, 0xba, 0x9a, 0xba, 0xaa, 0xa9, 0x98, 0x88, 0x87, 0x77, 0x88, 0x88, 0x77, 0x88, 0x88, 0x88, 0x87, 0x88, 0x88, 0x78, 0x88, 0x87, 0x77, 0x77,
0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x99, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x99, 0x99, 0x99, 0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xab, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xbc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcb, 0xbb, 0xaa, 0xaa, 0x99, 0x99, 0x88, 0x88, 0x88, 0x88, 0x88, 0x77, 0x77, 0x66, 0x67, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x67, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x78, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0x99, 0x9a, 0xa9, 0xaa, 0xaa, 0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0xba, 0xbb, 0xba, 0xab, 0xbb, 0xbb, 0xbb, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xbb, 0xbb, 0xbc, 0xcc, 0xcc, 0xcc, 0xcb, 0xbb, 0xba, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0x9a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0x99, 0x99, 0x88, 0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x88, 0x89, 0x98, 0x88, 0x88, 0x88, 0x88, 0x88, 0x99, 0x99, 0x99, 0x99, 0x99, 0x9a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xab, 0xbb, 0xaa, 0xaa, 0xaa, 0xaa, 0x9a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xba, 0xaa, 0xaa, 0xaa, 0xaa, 0x99, 0xa9, 0x99, 0xaa, 0x99, 0x99, 0x9a, 0xa9, 0xaa, 0xa9, 0x88, 0x88, 0x77, 0x77, 0x87, 0x77, 0x77, 0x77, 0x77, 0x77, 0x76, 0x67, 0x77, 0x88, 0x77, 0x77, 0x66, 0x66,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
11 February 2021 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
11 February 2021 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
11 February 2021 by Soldered
Code for Moonphase and moon fonts taken from here: https://learn.adafruit.com/epaper-weather-station/arduino-setup
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
16 Aug 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
29 March 2022 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
Inkplate will change content on the screen every 10 seconds and go
into deep sleep mode after showing three images.
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
24 November 2022 by soldered.com
Expand All @@ -24,9 +28,11 @@
#include "picture1.h" // Include .h files of 3 pictures. All three pictures were converted using Inkplate Image Converter and have resolution of 212x104 picels
#include "picture2.h"
#include "picture3.h" // This are headers in which are saved pictures that needs to be stored in RAM for showing.
// Any picture (in any format) can be converted in this type of header on this link:
// https://solderedelectronics.github.io/Inkplate-image-converter/ just choose settings for your Inkplate
// and additional settings like dither and bit mode.
/*
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/


Inkplate display; // Create display object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
2 January 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
5 April 2022 by e-radionica.com
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
7 April 2022 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
5 April 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
4 April 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
11 April 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
11 April 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
4 April 2023 by Soldered
Code for Moonphase and moon fonts taken from here: https://learn.adafruit.com/epaper-weather-station/arduino-setup
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
31 July 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
16 July 2023 by Soldered
In order to convert your images into a format compatible with Inkplate
use the Soldered Image Converter available at:
https://github.com/SolderedElectronics/Soldered-Image-Converter/releases
*/

// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
Want to learn more about Inkplate? Visit www.inkplate.io
Looking to get support? Write on our forums: https://forum.soldered.com/
24 July 2023 by Soldered
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


const uint8_t background[] PROGMEM = {
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,
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,
Expand Down
Loading

0 comments on commit 22dd021

Please sign in to comment.