updated TempSender and LCDReceiver

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2023-12-19 15:11:51 +01:00
parent a0dfb4c8f5
commit 0f4c20bdce
2 changed files with 23 additions and 19 deletions
+4 -2
View File
@@ -12,7 +12,7 @@
#include <SoftRS485.h>
#include <AM2302-Sensor.h>
#define PROGRAM "RS485-Nano 2.0 / TempSender 1.2"
#define VERSION "1.2"
#define BTN_INT 2 // button interrupt pin
#define Max485_RO 3 // read-output of Max485
@@ -64,7 +64,9 @@ void setup(){
attachInterrupt(digitalPinToInterrupt(BTN_INT),isr,CHANGE);
// Print a message to the LCD.
Serial.println(PROGRAM);
String s = "{nano:"+String(ID)+",revision:2.0,TempSender:"+VERSION+"}";
Serial.println(s);
send485(s.c_str());
#ifdef LOG_TO_SERIAL
Serial.println("14 15 16 17 18 19 20 21");
#endif