steve langner
Member
I know nothing about the Atmega328p, and little about anything else. So in desperation to program an Arduino Nano which uses the 328p i tried this very basic code to get the built-in LED to flash. The nano would be programmed via XLoader which adapts the Arduino to a hex file. Needless to say it doesn't work. Although the program seems to upload (Nano LEDs active) the LED remains off. Can anyone help by telling me why this doesn't work, and offer a correction? I understand the internal LED is connected to PD7 (pin13).
PD.7 = 0
Loop:
PD.7 = 1
Waitms 500
PD7 = 0
Waitms 500
GoTo Loop
PD.7 = 0
Loop:
PD.7 = 1
Waitms 500
PD7 = 0
Waitms 500
GoTo Loop