变更定义位置
This commit is contained in:
parent
118f2a8178
commit
872a6d34fa
@ -1,25 +1,4 @@
|
||||
#include "cmd.h"
|
||||
|
||||
#if defined(__AVR_ATmega32U4__) || defined(ARDUINO_SAMD_ZERO)
|
||||
#pragma message "当前的开发板是 ATmega32U4 或 SAMD_ZERO"
|
||||
#define SerialDevice SerialUSB
|
||||
#define LED_PIN A3
|
||||
|
||||
#elif defined(ARDUINO_ESP8266_NODEMCU_ESP12E)
|
||||
#pragma message "当前的开发板是 NODEMCU_ESP12E"
|
||||
#define SerialDevice Serial
|
||||
#define LED_PIN D5
|
||||
//#define SwitchBaudPIN D4 //修改波特率按钮
|
||||
|
||||
#elif defined(ARDUINO_NodeMCU_32S)
|
||||
#pragma message "当前的开发板是 NodeMCU_32S"
|
||||
#define SerialDevice Serial
|
||||
#define LED_PIN 13
|
||||
|
||||
#else
|
||||
#error "未经测试的开发板,请检查串口和阵脚定义"
|
||||
#endif
|
||||
|
||||
bool high_baudrate = true;//high_baudrate=true
|
||||
|
||||
void setup() {
|
||||
|
Loading…
Reference in New Issue
Block a user