2 Commits

Author SHA1 Message Date
StephanRichter b224abf38d Merge branch 'nano-revision-2.0' into nano-revision-2.1 2024-11-03 17:50:33 +01:00
StephanRichter 0605fbc52e updated to work with updated library
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2024-11-03 17:48:03 +01:00
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void setup(){
states[i] = LOW;
}
Serial.begin(115200);
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI); // library initialization:
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI,6000); // library initialization:
pinMode(BTN_INT,INPUT_PULLUP);
pinMode(14,INPUT_PULLUP);
pinMode(15,INPUT_PULLUP);
@@ -14,13 +14,14 @@
#define Max485_DE 8 // data enable of Max485
#define Max485_DI 9 // data input of Max485
#define PROGRAM "{hw:RS485-Nano rev 2.1,firmware:Transceiver,version:1.0}"
#define PROGRAM "{hw:RS485-Nano rev 2.1,firmware:Transceiver,version:1.1}"
String message = "";
char c;
void setup() {
Serial.begin(115200);
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI); // library initialization:
Serial.println(PROGRAM);
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI,6000); // library initialization:
send485(PROGRAM);
}