Gents,
I'm using a 12f683 to light close to 20 LEDs. I'm currently using select case statements to set the GPIO and TRISIO so I can use several LEDs on each I/O pin. Then cycle through the LEDs pausing where necessary and repeating but not repeating on all LEDs.
Is there a way to define LEDXs' TRISIO and GPIO and then call LEDX. It would make the repeated use of individual LEDs alot easier.
Something like this:
LED1 VAR BIN
LED2 VAR BIN
LED1 = trisio%011110, gpio=%000001
LED2 = trisio%011110, gpio=%100000
main:
LED1
pause 500
LED2
pause 500
goto main
end
I did look in http://ww1.microchip.com/downloads/e...Doc/01146B.pdf but it doesn't really address this.
Bookmarks