Skip to content

Commit e9302da

Browse files
authored
Merge branch 'SolderedElectronics:master' into draw-from-png-buf
2 parents aa6ee82 + 2dd263f commit e9302da

File tree

2,175 files changed

+580550
-5499
lines changed

Some content is hidden

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

2,175 files changed

+580550
-5499
lines changed

.github/workflows/compile.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ jobs:
77
strategy:
88
matrix:
99
include:
10+
- board:
11+
fqbn: Inkplate_Boards:esp32:Inkplate5
12+
additional-sketch-paths: |
13+
- examples/Inkplate5
14+
- board:
15+
fqbn: Inkplate_Boards:esp32:Inkplate5V2
16+
additional-sketch-paths: |
17+
- examples/Inkplate5V2
1018
- board:
1119
fqbn: Inkplate_Boards:esp32:Inkplate6
1220
additional-sketch-paths: |
@@ -31,6 +39,10 @@ jobs:
3139
fqbn: Inkplate_Boards:esp32:Inkplate6plusV2
3240
additional-sketch-paths: |
3341
- examples/Inkplate6PLUS
42+
- board:
43+
fqbn: Inkplate_Boards:esp32:Inkplate6Flick
44+
additional-sketch-paths: |
45+
- examples/Inkplate6FLICK
3446
- board:
3547
fqbn: Inkplate_Boards:esp32:Inkplate6COLOR
3648
additional-sketch-paths: |
@@ -55,7 +67,6 @@ jobs:
5567
fqbn: ${{ matrix.board.fqbn }}
5668
libraries: |
5769
- source-path: ./
58-
- name: "Adafruit BME680 Library"
5970
- name: ArduinoJson
6071
- name: Time
6172
- source-url: https://github.com/SolderedElectronics/Soldered-MFRC522-RFID-Reader-Arduino-Library.git

.github/workflows/format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: DoozyX/clang-format-lint-action@v0.12
11+
- uses: DoozyX/clang-format-lint-action@v0.18.2
1212
with:
1313
source: "./src"
1414
exclude: "./src/libs"

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ There are many examples in the library that you demonstrate how to use any of th
2626

2727
Find Inkplate documentation [here](https://inkplate.readthedocs.io/en/latest/arduino.html).
2828

29+
### Soldered Image Converter
30+
31+
In order to display an Image on Inkplate, you can use the Soldered Image Converter to convert from .png, .jpg, .bmp to .h files which can be easily added to your project. Download the latest release [here](https://github.com/SolderedElectronics/Soldered-Image-Converter/releases).
2932

3033
### Using Inkplate with another microcontroller - Peripheral mode
3134

@@ -53,6 +56,12 @@ pip3 install pyserial
5356
apt install python-is-python3
5457
```
5558

59+
In case you're getting an [error](https://github.com/SolderedElectronics/Inkplate-Arduino-library/issues/212) while trying to install pyserial, run the following command:
60+
61+
```
62+
apt install python3-serial
63+
```
64+
5665
### Micropython
5766

5867
If you are looking for micropython support, please find all details [here](https://github.com/SolderedElectronics/Inkplate-micropython).

examples/Inkplate10/Advanced/Communications/Inkplate10_EasyC/Inkplate10_EasyC.ino

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#error "Wrong board selection for this example, please select e-radionica Inkplate10 or Soldered Inkplate10 in the boards menu."
2323
#endif
2424

25-
#include "BME680-SOLDERED.h" // Soldered library for BME680 Sensor
25+
#include <BME680-SOLDERED.h> // Soldered library for BME680 Sensor
2626
#include "Inkplate.h" // Include Inkplate library to the sketch
2727
#include "icons.h"
2828

@@ -32,6 +32,9 @@ BME680 bme680; // Create an object on Soldered BME680 library (with no arguments
3232

3333
int n = 0; // Variable that keep track on how many times screen has been partially updated
3434

35+
// Add temperature offset to calibrate the sensor
36+
const float temperatureOffset = 0.0;
37+
3538
void setup()
3639
{
3740
display.begin(); // Init Inkplate library (you should call this function ONLY ONCE)
@@ -59,7 +62,7 @@ void loop()
5962

6063
// Display the temperature icon and measured value
6164
display.setCursor(493, 65);
62-
display.print(bme680.readTemperature());
65+
display.print(bme680.readTemperature() + temperatureOffset);
6366
display.print(" *C");
6467
display.drawImage(temperature_icon, 220, 40, temperature_icon_w, temperature_icon_h,
6568
BLACK); // Arguments are: array variable name, start X, start Y, size X, size Y, color
@@ -99,4 +102,7 @@ void loop()
99102

100103
// Wait a little bit between readings
101104
delay(10000);
105+
106+
// If you want to save energy, instead of the delay function, you can use deep sleep as we used in DeepSleep
107+
// examples
102108
}

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/Advanced/RTC/Inkplate10_RTC_Timer/Inkplate10_RTC_Timer.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void setup()
6262
* int_pulse
6363
* true = interrupt generate a pulse; false = interrupt follows timer flag
6464
*/
65-
display.rtcTimerSet(Inkplate::TIMER_CLOCK_1HZ, countdown_time, false, false);
65+
display.rtcTimerSet(Inkplate::TIMER_CLOCK_1HZ, countdown_time, true, false);
6666
}
6767

6868
// Variable that keeps count on how much screen has been partially updated

examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_Show_JPG_With_HTTPClient/Inkplate10_Show_JPG_With_HTTPClient.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ char *ssid = ""; // Your WiFi SSID
3333
char *pass = ""; // Your WiFi password
3434

3535
// Add the URL of the image you want to show on Inkplate
36-
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/dev/examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_Show_JPG_With_HTTPClient/image.jpg";
36+
String url = "https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Arduino-library/master/examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_Show_JPG_With_HTTPClient/image.jpg";
3737

3838
/***********************************************/
3939

0 commit comments

Comments
 (0)