Skip to content

Commit 2e3f82b

Browse files
StarSphere-1024Pillar1989
authored andcommitted
fix: Fix unresolved conflicts from the last merge.
1 parent 3fa018a commit 2e3f82b

File tree

11 files changed

+29
-75
lines changed

11 files changed

+29
-75
lines changed

Extensions/EPaper.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ class EPaper : public TFT_eSprite
1717
bool _sleep;
1818
};
1919

20-
21-
22-
#include "EPaper.cpp"

examples/Round Display/Arduino_Life/Arduino_Life.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
// Adapted by Bodmer
88

9-
#define SEEED_XIAO_ROUND_DISPLAY
109
#include <TFT_eSPI.h> // Hardware-specific library
1110
#include <SPI.h>
1211

examples/Round Display/GifPlayer/GifPlayer.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <vector>
2-
#define SEEED_XIAO_ROUND_DISPLAY
32
#include <TFT_eSPI.h>
43
#include <SPI.h>
54
#include <SD.h>

examples/Round Display/Pong_v3/Pong_v3.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#define WHITE 0xFFFF
99
#define GREY 0x5AEB
1010

11-
#define SEEED_XIAO_ROUND_DISPLAY
1211
#include <TFT_eSPI.h> // Graphics and font library for ST7735 driver chip
1312
#include <SPI.h>
1413

examples/Round Display/TFT_flash_jpg/TFT_flash_jpg.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//----------------------------------------------------------------------------------------------------
1313

1414
#include <SPI.h>
15-
#define SEEED_XIAO_ROUND_DISPLAY
1615
#include <TFT_eSPI.h>
1716

1817
TFT_eSPI tft = TFT_eSPI();

examples/Round Display/Touch_Pannel/Touch_Pannel.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <Arduino.h>
2-
#define SEEED_XIAO_ROUND_DISPLAY
32
#include <TFT_eSPI.h>
43
#include <SPI.h>
54

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#define SEEED_XIAO_EPAPER_7INCH5
21
#include "TFT_eSPI.h"
32
#include "image.h"
43

54
#ifdef EPAPER_ENABLE // Only compile this code if the EPAPER_ENABLE is defined in User_Setup.h
6-
75
EPaper epaper;
6+
#endif
87
void setup()
98
{
9+
#ifdef EPAPER_ENABLE
1010
Serial.begin(115200);
1111
delay(2000);
1212
Serial.println("Start");
@@ -18,22 +18,11 @@ void setup()
1818
// epaper.pushImage(0, 0, 800, 480, (uint16_t *)gImage_1);
1919
// epaper.update();
2020
Serial.println("update");
21-
epaper.update(0, 0, TFT_WIDTH, TFT_HEIGHT, (uint16_t *)epd_bitmap_);
22-
21+
epaper.update(0, 0, TFT_WIDTH, TFT_HEIGHT, (uint16_t *)gImage_2);
22+
#endif
2323
}
2424

2525
void loop()
2626
{
2727
// put your main code here, to run repeatedly:
2828
}
29-
#else
30-
void setup()
31-
{
32-
33-
}
34-
35-
void loop()
36-
{
37-
38-
}
39-
#endif

examples/ePaper/Basic/Clock/Clock.ino

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*/
1919

2020
#include <SPI.h>
21-
#define SEEED_XIAO_EPAPER_7INCH5
2221
#include <TFT_eSPI.h> // Hardware-specific library
2322

2423
#ifdef EPAPER_ENABLE // Only compile this code if the EPAPER_ENABLE is defined in User_Setup.h
@@ -36,8 +35,11 @@ uint8_t hh = conv2d(__TIME__), mm = conv2d(__TIME__ + 3), ss = conv2d(__TIME__ +
3635

3736
bool initial = 1;
3837

38+
#endif
39+
3940
void setup(void)
4041
{
42+
#ifdef EPAPER_ENABLE
4143
epaper.begin();
4244
epaper.setRotation(0);
4345

@@ -89,10 +91,12 @@ void setup(void)
8991
epaper.update();
9092

9193
targetTime = millis() + 1000;
94+
#endif
9295
}
9396

9497
void loop()
9598
{
99+
#ifdef EPAPER_ENABLE
96100
if (targetTime < millis())
97101
{
98102
targetTime += 1000;
@@ -147,23 +151,15 @@ void loop()
147151
epaper.fillCircle(120, 121, 3, TFT_BLACK);
148152
epaper.update();
149153
}
154+
#endif
150155
}
151156

157+
#ifdef EPAPER_ENABLE
152158
static uint8_t conv2d(const char *p)
153159
{
154160
uint8_t v = 0;
155161
if ('0' <= *p && *p <= '9')
156162
v = *p - '0';
157163
return 10 * v + *++p - '0';
158164
}
159-
#else
160-
void setup()
161-
{
162-
163-
}
164-
165-
void loop()
166-
{
167-
168-
}
169-
#endif
165+
#endif

examples/ePaper/Basic/Clock_Digital/Clock_Digital.ino

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,22 @@ static uint8_t conv2d(const char* p) {
5050

5151
uint8_t hh=conv2d(__TIME__), mm=conv2d(__TIME__+3), ss=conv2d(__TIME__+6); // Get H, M, S from compile time
5252

53+
#endif
54+
5355
void setup(void) {
56+
#ifdef EPAPER_ENABLE
5457
epaper.begin();
5558
epaper.setRotation(1);
5659
epaper.fillScreen(TFT_BLACK);
5760

5861
epaper.setTextColor(TFT_YELLOW, TFT_BLACK); // Note: the new fonts do not draw the background colour
5962
epaper.update(); // update the display
6063
targetTime = millis() + 1000;
64+
#endif
6165
}
6266

6367
void loop() {
68+
#ifdef EPAPER_ENABLE
6469
if (targetTime < millis()) {
6570
targetTime = millis()+1000;
6671
ss++; // Advance second
@@ -125,16 +130,5 @@ void loop() {
125130
}
126131
epaper.update(); // update the display
127132
}
128-
}
129-
#else
130-
void setup()
131-
{
132-
133-
}
134-
135-
void loop()
136-
{
137-
138-
}
139-
140133
#endif
134+
}

examples/ePaper/Basic/Shape/Shape.ino

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#define SEEED_XIAO_EPAPER_7INCH5
21
#include "TFT_eSPI.h"
32

43
#ifdef EPAPER_ENABLE // Only compile this code if the EPAPER_ENABLE is defined in User_Setup.h
5-
64
EPaper epaper;
5+
#endif
6+
77
void setup()
88
{
9-
9+
#ifdef EPAPER_ENABLE
1010
epaper.begin();
1111
epaper.fillScreen(TFT_WHITE);
1212
epaper.update(); // update the display
@@ -40,22 +40,10 @@ void setup()
4040
epaper.fillRect(10 + 80 * i, 10, 40, 40, TFT_BLACK);
4141
epaper.update();
4242
}
43-
43+
#endif
4444
}
4545

4646
void loop()
4747
{
4848
// put your main code here, to run repeatedly:
4949
}
50-
#else
51-
void setup()
52-
{
53-
54-
}
55-
56-
void loop()
57-
{
58-
59-
}
60-
61-
#endif

0 commit comments

Comments
 (0)