From 202895e34ef0eda0dbf9252fd654898b7b479f15 Mon Sep 17 00:00:00 2001 From: moon2 <moon2protonmail@protonmail.com> Date: Sun, 19 Nov 2023 16:57:57 +0100 Subject: [PATCH] captouch demo: clarify docs + make behavior match --- docs/badge/usage.rst | 6 +++--- python_payload/apps/demo_cap_touch/__init__.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/badge/usage.rst b/docs/badge/usage.rst index e1c1076d85..2225953f88 100644 --- a/docs/badge/usage.rst +++ b/docs/badge/usage.rst @@ -156,10 +156,10 @@ Audio passthrough Make audio from the line in, onboard mic or headset mic appear on the speakers or headphone output. -Captouch Demo +captouch demo ^^^^^^^^^^^^^ -Visualizes the positional data from the captouch pads. Unfortunately petal 5 is not fully functional with the current driver so it performs slightly worse than all the others. Press shoulder button in any direction to enter captouch calibration mode. *Note: calibration happens during every boot, the data is not permanently stored at this point in time. If you experience a captouch malfunction during runtime and do not wish to lose your runtime data this is useful. In the future we will probably move to calibrating more explicitely and storing the data.* +Visualizes the positional data from the captouch pads. Unfortunately petal 5 is not fully functional with the current driver so it performs slightly worse than all the others. Press app button in any direction to enter captouch calibration mode. *Note: calibration happens during every boot, the data is not permanently stored at this point in time. If you experience a captouch malfunction during runtime and do not wish to lose your runtime data this is useful. In the future we will probably move to calibrating more explicitely and storing the data.* Files ^^^^^ @@ -191,7 +191,7 @@ Worms Touch petals for worms! -Sensors +sensors ^^^^^^^ Shows output of several system sensors. LED hue changes with smoothed relative altitude and goes full circle on a 1m difference. Screen rotates to an upright position if flow3r is not in a horizontal position. The sensor data shown on the display is purposefully unfiltered to reflect the expected noise floor when using the low level API calls. If no battery detected the battery voltage field shows garbage. diff --git a/python_payload/apps/demo_cap_touch/__init__.py b/python_payload/apps/demo_cap_touch/__init__.py index 314bd02cf8..d50b1b8d52 100644 --- a/python_payload/apps/demo_cap_touch/__init__.py +++ b/python_payload/apps/demo_cap_touch/__init__.py @@ -48,7 +48,7 @@ class CapTouchDemo(Application): if press_event: print(self.button) if self.state == 0: - if press_event and self.button == ins.buttons.PRESSED_DOWN: + if press_event: self.state = 1 self.dots = [] for i in range(10): -- GitLab