updated TempSender and LCDReceiver
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user