Browse Source

arduino fix

Torsten Simon 3 years ago
parent
commit
0c5fee44de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      arduino/arduino.ino

+ 2 - 2
arduino/arduino.ino

@@ -11,8 +11,8 @@ void loop() {
   unsigned int val=abs(analogRead(A0));
   unsigned long V=round(val * 0.006270 * 1000);
   Serial.println(V);
-  Serial.println((V * 1000) << 2 | 0x00);
-  rcSwitch.send((V * 1000) << 2 | 0x00, 24);
+  Serial.println((V) << 8 | 0x00);
+  rcSwitch.send((V) << 8 | 0x00, 24);
   delay(500);  
 }