Forum Discussion
Altera_Forum
Honored Contributor
14 years agoProblem with IORD_ALTERA_AVALON_PIO
hi, i want to write a simple code witch can turn on a led when i press a button. i have write this piece of code but seems doesn't works... here is my code:
int main()
{
volat...
Altera_Forum
Honored Contributor
14 years agoAs a first check I's swap the ON/OFF over - and see if the led is now off!
That should let you find out whether the problem is with the leds or switch. As written you'll need to be holding down the switch to have any effect. You might also try a software delay loop inverting the led after each delay.