- Posts: 12
- Thank you received: 0
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
lumberjack_jeff wrote: Thank you for the troubleshooting help.
Can you please advise me about debouncing pin 10?
I think I need to replace this wscnc.hal code
withCode:... net estop-ext <= parport.0.pin-10-in ... #limits debounce to stop false triggers loadrt debounce cfg=2 #change to the number you want setp debounce.0.delay 100 #this sets the delay 100 iterations of the base thread addf debounce.0 base-thread net deb-probe-in debounce.0.0.in <= parport.0.pin-12-in-not net probe-in debounce.0.0.outCode:... loadrt debounce cfg=2 #I think I only need two setp debounce.0.delay 100 setp debounce.1.delay 100 addf debounce.0 base-thread addf debounce.1 base-thread net deb-probe-in debounce.0.0.in <= parport.0.pin-12-in-not net deb-estop-ext debounce.1.0.in <= parport.0.pin-10-in net probe-in debounce.0.0.out net estop-ext debounce.1.0.out
Please Log in or Create an account to join the conversation.