moad
Newbie level 5
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 void main() { TRISA.F0=1; TRISC=0; PORTC=0; while (1){ if (PORTA.F0 == 1){ PORTC=1; delay_ms(1000); PORTC=0; } } }
the above is a simple code to make all leds in portc to turn on when ra0 is pressed, unfortonately nothing happens when its pressed? any suggesstions would be appreciated, thanks
Last edited by a moderator: