mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-27 15:02:41 +00:00
Tanmatsu: enable serial control port
This commit is contained in:
parent
8ee646d520
commit
5e99e07b3b
@ -891,6 +891,15 @@ void NodeDB::installDefaultModuleConfig()
|
||||
moduleConfig.ambient_lighting.green = (myNodeInfo.my_node_num & 0x00FF00) >> 8;
|
||||
moduleConfig.ambient_lighting.blue = myNodeInfo.my_node_num & 0x0000FF;
|
||||
|
||||
#if defined(HAS_SERIAL) && HAS_SERIAL
|
||||
moduleConfig.serial.enabled = true;
|
||||
moduleConfig.serial.baud = meshtastic_ModuleConfig_SerialConfig_Serial_Baud_BAUD_38400;
|
||||
moduleConfig.serial.rxd = SERIAL_RX_PIN;
|
||||
moduleConfig.serial.txd = SERIAL_TX_PIN;
|
||||
moduleConfig.serial.timeout = SERIAL_TIMEOUT;
|
||||
moduleConfig.serial.mode = meshtastic_ModuleConfig_SerialConfig_Serial_Mode_PROTO;
|
||||
#endif
|
||||
|
||||
initModuleConfigIntervals();
|
||||
}
|
||||
|
||||
|
||||
@ -32,3 +32,8 @@ extern float tcxoVoltage; // make this available everywhere
|
||||
#undef GPS_TX_PIN
|
||||
|
||||
#define HAS_SCREEN 0
|
||||
|
||||
#define HAS_SERIAL 1
|
||||
#define SERIAL_RX_PIN 18
|
||||
#define SERIAL_TX_PIN 20
|
||||
#define SERIAL_TIMEOUT 1000
|
||||
|
||||
Loading…
Reference in New Issue
Block a user