mirror of
https://github.com/Kugelschieber/arduino-c.git
synced 2026-01-18 02:50:26 +00:00
480 B
480 B
Arduino C
Programming the Arduino in pure C on Linux.
Requirements
- arvdude
- arv-gcc
- avr-libc
Compile and upload
Run using the following command (example port):
sudo ./compile.sh /dev/ttyUSB0
The port can be found by looking inside /dev, the system file ll /sys/class/tty/ttyUSB*, or by running lsusb.
Monitoring the serial port
sudo screen /dev/ttyUSB0 9600
To close the program, press Ctrl + A and type in :quit and hit enter.