Skip to content

Commit fe9be6b

Browse files
committed
add: 加个宏定义
1 parent cdb67d3 commit fe9be6b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
3333
- name: Compile firmware
3434
run: |
35-
arduino-cli compile --fqbn esp32:esp32:esp32 ./code/code.ino
35+
arduino-cli compile --fqbn esp32:esp32:esp32c3 ./code/code.ino

code/code.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
#define RXD 4
2121
#define MODEM_EN_PIN 5
2222

23+
// LED引脚定义(用于通过CI验证,给个假的)
24+
#ifndef LED_BUILTIN
25+
#define LED_BUILTIN 8
26+
#endif
27+
2328
// 推送通道类型
2429
enum PushType {
2530
PUSH_TYPE_NONE = 0, // 未启用

0 commit comments

Comments
 (0)