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
Re: light turns on when push button is pressed mikroc
You had not mentioned what microcontroller were used, but registers seems belonging to the PIC family.
If it is the case, and assuming the one you selected has A/D converter, you need to disable it on init, due default configuration for PortA is not digital I/O's.