updated temp sender
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -82,7 +82,7 @@ void isr(){
|
||||
}
|
||||
|
||||
void send(int btn, long duration){
|
||||
String s = "{nano:"+String(ID)+",btn:"+String(btn)+",dura:"+String(duration)+"}";
|
||||
String s = "{nano:"+String(ID)+",btn:"+String(btn)+",ms:"+String(duration)+"}";
|
||||
#ifdef SEND_485
|
||||
for (int i = 0; i<10; i++){
|
||||
if (send485(s.c_str())) break;
|
||||
@@ -95,7 +95,6 @@ void send(int btn, long duration){
|
||||
|
||||
void loop(){
|
||||
unsigned long now = micros();
|
||||
boolean pause = true;
|
||||
for (int i=0;i<8;i++){
|
||||
// we emulate a capacitor:
|
||||
// when the button is pressed, it slowly loads, if the button is released, it unloads.
|
||||
|
||||
Reference in New Issue
Block a user