Skip to content

Commit 1402cba

Browse files
committed
[UPD] Moved display definition
1 parent 5f1e20d commit 1402cba

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
#ifndef _800x480_H_
2-
#define _800x480_H_
1+
#ifndef _750_T7_H_
2+
#define _750_T7_H_
3+
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+
);
39

410
const unsigned char image[] PROGMEM = {
511
0x55, 0x55, 0x55, 0x6d, 0xb6, 0xdb, 0x6d, 0xb5, 0x6a, 0xbf, 0xf5, 0x22,
@@ -4004,4 +4010,4 @@ const unsigned char image[] PROGMEM = {
40044010
0x28, 0x02, 0x40, 0x0a, 0x76, 0xff, 0xfa, 0xde, 0xda, 0xa0, 0x14, 0xab
40054011
};
40064012

4007-
#endif // _800x480_H_
4013+
#endif // _750_T7_H_

Gulu_ESP32-C3_ePaper_Firmware/platformio.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,4 @@ lib_deps =
1616
zinggjm/GxEPD2@^1.5.6
1717
build_flags =
1818
-D ARDUINO_USB_MODE=1
19-
-D ARDUINO_USB_CDC_ON_BOOT=1
20-
monitor_filters =
21-
time
22-
log2file
19+
-D ARDUINO_USB_CDC_ON_BOOT=1

Gulu_ESP32-C3_ePaper_Firmware/src/main.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
#include <GxEPD2_BW.h>
2-
#include "800x480.h"
3-
4-
GxEPD2_BW<GxEPD2_750_T7, GxEPD2_750_T7::HEIGHT> display(
5-
GxEPD2_750_T7(6, 7, 10, 3)
6-
);
1+
#include "750_T7.h"
72

83
void setup() {
94
pinMode(0, OUTPUT);

0 commit comments

Comments
 (0)