Browse Source

increased speed

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
nano-revision-1.0
Stephan Richter 1 year ago
parent
commit
10600b21b8
  1. 2
      Receiver/Receiver.ino
  2. 4
      Sender/Sender.ino

2
Receiver/Receiver.ino

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
int sTx = 2;
int sRx = 3;
long base = 200;
long base = 100;
long rst = base*10; // reset
boolean bt = false;
long dif = 0;

4
Sender/Sender.ino

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
int sTx = 4;
int sRx = 5;
long base = 200;
long base = 100;
int id = 0;
int baud = 19200;
@ -11,7 +11,7 @@ int counter = 0; @@ -11,7 +11,7 @@ int counter = 0;
void setup(){
pinMode(A0,INPUT);
id = analogRead(A0)*10;
id = analogRead(A0);
pinMode(enable,OUTPUT);
digitalWrite(enable,LOW);

Loading…
Cancel
Save