Skip to content

tderflinger/arduino-blink-purec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published