Compare commits
1 Commits
nano-revis
...
nano-6
| Author | SHA1 | Date | |
|---|---|---|---|
| 412505100e |
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#define ID 0
|
#define ID 0
|
||||||
#define PROGRAM "Sender"
|
#define PROGRAM "Sender"
|
||||||
#define SW_VERSION "1.4"
|
#define SW_VERSION "1.3"
|
||||||
#define HW_VERSION "2.1"
|
#define HW_VERSION "2.1"
|
||||||
|
|
||||||
#define BTN_INT 3 // button interrupt pin
|
#define BTN_INT 3 // button interrupt pin
|
||||||
@@ -49,7 +49,7 @@ void setup(){
|
|||||||
states[i] = LOW;
|
states[i] = LOW;
|
||||||
}
|
}
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI,4000); // library initialization:
|
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI); // library initialization:
|
||||||
pinMode(BTN_INT,INPUT_PULLUP);
|
pinMode(BTN_INT,INPUT_PULLUP);
|
||||||
pinMode(14,INPUT_PULLUP);
|
pinMode(14,INPUT_PULLUP);
|
||||||
pinMode(15,INPUT_PULLUP);
|
pinMode(15,INPUT_PULLUP);
|
||||||
|
|||||||
@@ -14,14 +14,13 @@
|
|||||||
#define Max485_DE 8 // data enable of Max485
|
#define Max485_DE 8 // data enable of Max485
|
||||||
#define Max485_DI 9 // data input of Max485
|
#define Max485_DI 9 // data input of Max485
|
||||||
|
|
||||||
#define PROGRAM "{hw:RS485-Nano rev 2.1,firmware:Transceiver,version:1.1}"
|
#define PROGRAM "{hw:RS485-Nano rev 2.1,firmware:Transceiver,version:1.0}"
|
||||||
|
|
||||||
String message = "";
|
String message = "";
|
||||||
char c;
|
char c;
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
Serial.println(PROGRAM);
|
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI); // library initialization:
|
||||||
init485(Max485_RO,Max485_RE,Max485_DE,Max485_DI,6000); // library initialization:
|
|
||||||
send485(PROGRAM);
|
send485(PROGRAM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,10 @@
|
|||||||
// 5=Arbeitszimmer
|
// 5=Arbeitszimmer
|
||||||
// 6=Bad OG
|
// 6=Bad OG
|
||||||
|
|
||||||
#define ID 0
|
#define ID 6
|
||||||
#define HW_VERSION "2.1"
|
|
||||||
#define PROGRAM "TempSender"
|
#define PROGRAM "TempSender"
|
||||||
#define SW_VERSION "1.5"
|
#define SW_VERSION "1.5"
|
||||||
|
#define HW_VERSION "2.1"
|
||||||
|
|
||||||
#define BTN_INT 3 // button interrupt pin
|
#define BTN_INT 3 // button interrupt pin
|
||||||
#define Max485_RO 2 // read-output of Max485
|
#define Max485_RO 2 // read-output of Max485
|
||||||
|
|||||||
Reference in New Issue
Block a user