Skip to content

dataplayer/Blinking-LED-on-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

C for Arduino

A short C program to make an Arduino LED blink.
You must compile using gcc-avr and upload using avrdude.

Instructions:
generate the hex file:
avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -c -o blink.o blink.c
avr-gcc -mmcu=atmega328p blink.o -o blink
avr-objcopy -O ihex -R .eeprom blink blink.hex

flashing the Arduino:
avrdude -V -F -C /etc/avrdude/avrdude.conf -p atmega328p -P /dev/ttyUSB0 -c stk500v1 -b 57600 -U flash:w:blink.hex

source: http://balau82.wordpress.com/2011/03/29/programming-arduino-uno-in-pure-c/

About

A small c program that makes an LED on an Arduino blink.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages