mirror of
https://github.com/Kugelschieber/arduino-c.git
synced 2026-01-18 11:00:26 +00:00
28 lines
480 B
Markdown
28 lines
480 B
Markdown
# 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.
|