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