Here's a better constructed code I made then the one up
Button var PORTB.0 ' Push button
LED1 var PORTB.1 ' Led 1
LED2 var PORB.2 ' Led 2
Pushed var byte ' Variable will contain the byte
If PUSHED =1 Then ' If button is push
High LED1 ' Turn on the LED
IF PUSHED=0 Then
High LED2
Endif
Bookmarks