File tree 2 files changed +19
-3
lines changed
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ void setup () {
2
+ Serial.begin (9600 );
3
+ }
4
+
5
+ int byte_value=0 ;
6
+
7
+ void loop () {
8
+ if (Serial.available () > 0 ) {
9
+ byte_value=Serial.read ();
10
+ Serial.println (byte_value, DEC);
11
+ }
12
+ Serial.write (' _' );
13
+ delay (1000 );
14
+ }
15
+
Original file line number Diff line number Diff line change 1
1
default :
2
2
ac compile --fqbn arduino:avr:uno Main
3
- ac upload --fqbn arduino:avr:uno -p /dev/ttyACM0 Main
3
+ ac upload --fqbn arduino:avr:uno -p /dev/ttyUSB0 Main
4
4
5
5
install :
6
6
curl -L -o site.html ' https://arduino.github.io/arduino-cli/0.35/installation/'
7
7
curl -L -O ' https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_ARM64.tar.gz'
8
+ # curl -L -O 'https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gz'
8
9
echo " tar cvfz that single executable into /usr/local/bin/ac manually"
9
10
10
11
init :
14
15
ac core list
15
16
16
17
cat :
17
- stty -F /dev/ttyACM0 raw 9600
18
- cat /dev/ttyACM0
18
+ stty -F /dev/ttyUSB0 raw 9600
19
+ cat /dev/ttyUSB0
You can’t perform that action at this time.
0 commit comments