Adjust touch sensitivity

This commit is contained in:
Dave Astels 2018-07-24 15:11:05 -04:00
parent 3055288479
commit 48cd4ddfc5
3 changed files with 7 additions and 3 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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)