NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » LED Marquee with Atmega328

March 25, 2011
by lcruz007
lcruz007's Avatar

Hi,

Is there anything else besides the line: '#include "io_328p.h"' I should add/change using the LED marquee code with the atmega328? Because I tried uploading the normal code to a 328 but didn't work, none of the LEDs turned on.

March 25, 2011
by lcruz007
lcruz007's Avatar

By the way, I get this warning:

ledarray.c:95: warning: ‘SIG_OVERFLOW0’ appears to be a misspelled signal handler
March 25, 2011
by hevans
(NerdKits Staff)

hevans's Avatar

Hi lcruz,

The SIG_OVERFLOW notation for the interrupt handler has been deprecated for a bit. You should use the new TIM0_OVF_vect, check out the avr libc docs for a list of all the interrupt vectors, both the old and new ones.

Humberto

Post a Reply

Please log in to post a reply.

Did you know that a microcontroller can measure an RC time constant? Learn more...