From 0605fbc52ef3094cec693fe09f95ad1f2cc7cfd6 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Sun, 3 Nov 2024 17:48:03 +0100 Subject: [PATCH] updated to work with updated library Signed-off-by: Stephan Richter --- Software/Sender/Sender.ino | 2 +- Software/SerialTransceiver/SerialTransceiver.ino | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Software/Sender/Sender.ino b/Software/Sender/Sender.ino index 10656d7..b8845eb 100644 --- a/Software/Sender/Sender.ino +++ b/Software/Sender/Sender.ino @@ -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); diff --git a/Software/SerialTransceiver/SerialTransceiver.ino b/Software/SerialTransceiver/SerialTransceiver.ino index 9122edf..55df57c 100644 --- a/Software/SerialTransceiver/SerialTransceiver.ino +++ b/Software/SerialTransceiver/SerialTransceiver.ino @@ -13,13 +13,13 @@ #define Max485_DE 9 // data enable of Max485 #define Max485_DI 8 // data input of Max485 -#define PROGRAM "{hw:RS485-Nano rev 2.0,firmware:Transceiver,version:1.0}" - +#define PROGRAM "{hw:RS485-Nano rev 2.0,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); }