Arduino Lab

Start a new GCC executable project and select Atmega 328p

Add a new file test.c

 

Start with the following:

set the GPIO register to bit 5 as output DDRB

use the val register to blink the LED – PORTB

use the function _delay_ms 

Add External tool:

command: C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe

argument:

-C”C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf” -v -v -v -v -patmega328p -carduino -P\\.\COM3 -b115200 -Uflash:w:”$(ProjectDir)\Debug\$(TargetName).hex”:i