This commit is contained in:
wt 2022-01-13 15:23:01 +01:00
parent 3035314825
commit 4ecadf4d77
3 changed files with 7 additions and 4 deletions

View File

@ -3,10 +3,12 @@
#include "GwApi.h"
//we only compile for some boards
#ifdef BOARD_NODEMCU32S_OBP60
//CAN NMEA2000
// CAN NMEA2000
#define ESP32_CAN_TX_PIN GPIO_NUM_13
#define ESP32_CAN_RX_PIN GPIO_NUM_12
//RS485 NMEA0183
// Bus load in 50mA steps
#define N2K_LOAD_LEVEL 5 (250mA max bus load with back light on)
// RS485 NMEA0183
#define GWSERIAL_TX 26
#define GWSERIAL_RX 14
#define GWSERIAL_MODE "UNI"

View File

@ -15,6 +15,6 @@ lib_deps =
build_flags=
-D BOARD_NODEMCU32S_OBP60
${env.build_flags}
upload_port = COM6
upload_port = COM3
upload_protocol = esptool
monitor_speed = 115200

View File

@ -48,8 +48,9 @@ lib_deps = ${env.lib_deps}
build_flags =
-D BOARD_M5ATOM
${env.build_flags}
upload_port = /dev/esp32
upload_port = COM13
upload_protocol = esptool
monitor_speed = 115200
[env:m5stack-atom-canunit]
board = m5stack-atom