Adjust touch sensitivity
This commit is contained in:
parent
3055288479
commit
48cd4ddfc5
3 changed files with 7 additions and 3 deletions
|
|
@ -18,7 +18,8 @@ from adafruit_circuitplayground.express import cpx
|
|||
DOT_DURATION = 0.20
|
||||
DASH_DURATION = 0.5
|
||||
|
||||
cpx.adjust_touch_threshold(600)
|
||||
# You can adjust this to get the level of sensitivity you want.
|
||||
cpx.adjust_touch_threshold(100)
|
||||
|
||||
while True:
|
||||
if cpx.touch_A4:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ DOT_DURATION = 0.25
|
|||
DASH_DURATION = 0.5
|
||||
|
||||
kbd = Keyboard()
|
||||
cpx.adjust_touch_threshold(600)
|
||||
|
||||
# You can adjust this to get the level of sensitivity you want.
|
||||
cpx.adjust_touch_threshold(100)
|
||||
|
||||
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -27,8 +27,9 @@ from adafruit_circuitplayground.express import cpx
|
|||
DOT_DURATION = 0.20
|
||||
DASH_DURATION = 0.5
|
||||
|
||||
# You can adjust this to get the level of sensitivity you want.
|
||||
# Uncomment the next line if you want to use capacitive touch.
|
||||
# cpx.adjust_touch_threshold(600)
|
||||
# cpx.adjust_touch_threshold(100)
|
||||
|
||||
# Uncomment the next 6 lines if you want to use external buttons
|
||||
# button_a = DigitalInOut(board.A4)
|
||||
|
|
|
|||
Loading…
Reference in a new issue