Maker Pro
Maker Pro

HELLO WORLD - LED BLINKING - HELP

Newbie here learning how to program.

Quick brief of equipment-
Using a USBtinyISP with a ATMega328p MCU on windows 8.1 using programmers notepad in C/C++

Cant seem to get the LED to turn on at all nethermind blinking.

Any help woud be appreciated thanks.

See image of setup and coding as attached
 

Attachments

  • 20150223_131133.jpg
    20150223_131133.jpg
    48 KB · Views: 133
  • 20150223_131300.jpg
    20150223_131300.jpg
    71.7 KB · Views: 96
The LED wont even light with the simplest of code, but no problem with make all or programming?????



#include <avr/io.h>

int main(void)
{
DDRB = 0b00000001; //Data Direction Register setting pin0 to output and the remaining pins as input
PORTB = 0b00000001; //Set pin0 to 5 volts
}
 
Top