Skip to content

Commit d0042d3

Browse files
authored
Merge pull request #5 from Plaenkler/firmware-example
[FIX] Superfluous components
2 parents 1d567dc + 1402cba commit d0042d3

File tree

3 files changed

+16
-32
lines changed

3 files changed

+16
-32
lines changed

Gulu_ESP32-C3_ePaper_Firmware/lib/bitmaps/800x480.h renamed to Gulu_ESP32-C3_ePaper_Firmware/lib/example/750_T7.h

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
#ifndef _800x480_H_
2-
#define _800x480_H_
1+
#ifndef _750_T7_H_
2+
#define _750_T7_H_
33

4-
#include <pgmspace.h>
4+
#include <GxEPD2_BW.h>
5+
6+
GxEPD2_BW<GxEPD2_750_T7, GxEPD2_750_T7::HEIGHT> display(
7+
GxEPD2_750_T7(6, 7, 10, 3)
8+
);
59

610
const unsigned char image[] PROGMEM = {
711
0x55, 0x55, 0x55, 0x6d, 0xb6, 0xdb, 0x6d, 0xb5, 0x6a, 0xbf, 0xf5, 0x22,
@@ -4006,4 +4010,4 @@ const unsigned char image[] PROGMEM = {
40064010
0x28, 0x02, 0x40, 0x0a, 0x76, 0xff, 0xfa, 0xde, 0xda, 0xa0, 0x14, 0xab
40074011
};
40084012

4009-
#endif // 800x480_H_F
4013+
#endif // _750_T7_H_

Gulu_ESP32-C3_ePaper_Firmware/platformio.ini

+2-16
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,11 @@
99
; https://docs.platformio.org/page/projectconf.html
1010

1111
[env:gulu_esp32-c3_epaper]
12-
; -- Build options --
1312
platform = espressif32
1413
board = esp32-c3-devkitc-02
1514
framework = arduino
1615
lib_deps =
17-
zinggjm/GxEPD2@^1.5.1
18-
build_type = debug
16+
zinggjm/GxEPD2@^1.5.6
1917
build_flags =
2018
-D ARDUINO_USB_MODE=1
21-
-D ARDUINO_USB_CDC_ON_BOOT=1
22-
; -- Upload options --
23-
; upload_port = COMX
24-
upload_speed = 115200
25-
; -- Monitor options --
26-
; monitor_port = COMX
27-
monitor_speed = 115200
28-
; monitor_rts = 0
29-
; monitor_dtr = 0
30-
monitor_filters =
31-
time
32-
colorize
33-
esp32_exception_decoder
19+
-D ARDUINO_USB_CDC_ON_BOOT=1
+6-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
#include <Arduino.h>
2-
#include <GxEPD2_BW.h>
3-
4-
#include "800x480.h"
5-
6-
GxEPD2_BW<GxEPD2_750_T7, GxEPD2_750_T7::HEIGHT>
7-
display(GxEPD2_750_T7(6, 7, 10, 3));
1+
#include "750_T7.h"
82

93
void setup() {
104
pinMode(0, OUTPUT);
@@ -13,10 +7,10 @@ void setup() {
137

148
void loop() {
159
display.drawImage(image, 0, 0, 800, 480);
16-
digitalWrite(0, HIGH);
17-
delay(1000);
18-
digitalWrite(0, LOW);
19-
delay(1000);
20-
esp_sleep_enable_timer_wakeup(10e6);
10+
display.hibernate();
11+
digitalWrite(0, 1);
12+
delay(1e3);
13+
digitalWrite(0, 0);
14+
esp_sleep_enable_timer_wakeup(1e7);
2115
esp_deep_sleep_start();
2216
}

0 commit comments

Comments
 (0)