Hi,
I'm not so sure of:
I'd try ...Code:button PB1, 0, 40, 5, B1, 0, main
that's the way It works for me for years in such a use ... note I think ( and observed ) the debouncing only occurs if condition is true (1) ...Code:... B1 = 0 ; always think to place it just before " button " command ... button PB1, 0, 255, 0, B1, 1,yes no: Pause 20 ; pace the scanning ... not compulsory goto main yes: toggle LATCH1 toggle LED1 ...
so, sometimes, you have to "twist" the test somewhat ...
Alain
Bookmarks