There's a way to do the LED part (sort of), but I don't think the PressButton example can be done.
Place these macros at the beginning of the program.Then to use them:Code:@LedOn macro GPIO.1=1 @ endm @LedOff macro GPIO.1=0 @ endmNot exactly what you were looking for, but it's close.Code:Loop: @ LedOn ' Here it turns light on Pause 1000 @ LedOff ' Here it turns light off Pause 1000 goto Loop
Best regards,
Darrel
Bookmarks