.1 | // The following code is running on Aera23's arduino, the server saves its output to a file with the command below:
.2 | // sudo cat /dev/ttyACM0 > /media/peplive/1844AEA344AE82DC/ALL/bot/o.txt
.3 |
.4 | void setup() {
.5 | // initialize serial:
.6 | Serial.begin(9600);
.7 | }
.8 |
.9 | void loop() {
10 | // put your main code here, to run repeatedly:
11 | delay(1000);
12 | //Rather than println, this doesn't give blank lines
13 | Serial.print(millis(), 10);
14 | Serial.print('\n');
15 | }
16 |