Search found 1 match

by surmanajaja
Thu Feb 05, 2015 2:50 pm
Forum: General Discussion and Questions
Topic: Bouncing inputs
Replies: 2
Views: 3538

Bouncing inputs

Hi I have this testcode to test bouncing inputs, and I can't figure out how to solve this by code. each time I pull my X3 hi I get 1 to four calbacks. seems like disabling interrupts is way too slow. How to solve this by code? Ideas? import pyb pin = pyb.Pin('X3',pyb.Pin.IN,pyb.Pin.PULL_DOWN) led = ...