A wheelchair motor-propelled battery-powered ESP32-driven remote control snow plow.
| {#} | Time | Hash | Subject | Author | # | (+) | (-) | GPG? |
|---|---|---|---|---|---|---|---|---|
| 12 | 30 Nov 2018 21:59 | 6cafdd8 | Update ard1.cpp | Joshua | 1 | 2 | 0 | N |
| 1 | #include "Arduino.h" |
| 2 | |
| 3 | // One time |
| 4 | void setup() { |
| 5 | pinMode(13, OUTPUT); |
| 6 | digitalWrite(13, HIGH); |
| 7 | Serial.begin(9600); |
| 8 | while (!Serial) |
| 9 | ; |
| 10 | Serial.println("ARD1: Motor Controller Active"); |
| 11 | } |
| 12 | |
| 13 | |
| 14 | // Repeatedly |
| 15 | void loop() { |
| 16 | if (Serial.available() > 0) { |
| 17 | Serial.print("ARD1: Received information: "); |
| 18 | Serial.println(Serial.readStringUntil(';')); |
| 19 | Serial.flush(); |
| 20 | } |
| 21 | delay(30); |
| 22 | } |
| 23 |