| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,9 +54,9 @@ void setup() { | |||
| 54 | 54 | ||
| 55 | 55 | void loop() { | |
| 56 | 56 | if (digitalRead(switchPin) == HIGH) { // If switch is ON, | |
| 57 | - Serial.print(1, BYTE); // send 1 to Processing | ||
| 57 | + Serial.write(1); // send 1 to Processing | ||
| 58 | 58 | } else { // If the switch is not ON, | |
| 59 | - Serial.print(0, BYTE); // send 0 to Processing | ||
| 59 | + Serial.write(0); // send 0 to Processing | ||
| 60 | 60 | } | |
| 61 | 61 | delay(100); // Wait 100 milliseconds | |
| 62 | 62 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments