tderflinger / arduino-blink-purec

A pure C implementation of a blink program for the Arduino Uno.

Home Page:https://www.tderflinger.com/en/arduino-blinking-led-pure-c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino Blink PureC

This is the source code of my blog article: https://www.tderflinger.com/en/arduino-blinking-led-pure-c

Arduino Uno Blink LED

This is an Arduino sketch implemented as pure C.

For this to compile and load to the Arduino Uno you need the AVR C compiler and Avrdude.

Installation

Under Linux install the toolchain:

sudo apt-get update && sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude make

Compiling

To compile the led program, run make

make

Deploying to Arduino Uno

In order to upload the binary to your Arduino Uno, check on which port your Arduino is connected. You can see the path for example in the Arduino IDE. Replace the port with the default value in the Makefile (ARDUINO_USB).

Then you can upload the program via:

make deploy

References

License

MIT License

About

A pure C implementation of a blink program for the Arduino Uno.

https://www.tderflinger.com/en/arduino-blinking-led-pure-c


Languages

Language:Makefile 54.0%Language:C 46.0%