summaryrefslogtreecommitdiff
path: root/src/drivers/include/touchwheel.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-05-12 14:12:23 +1000
committerjacqueline <me@jacqueline.id.au>2023-05-12 14:12:23 +1000
commitf3d0e8f98f2111ce41e076cfc927dce5705a6042 (patch)
tree7fb406cd3b34715f9b10d6aa38c74bf7eb20f9b9 /src/drivers/include/touchwheel.hpp
parent961c8014ada037712e8c72f23430362e9f14c1ec (diff)
downloadtangara-fw-f3d0e8f98f2111ce41e076cfc927dce5705a6042.tar.gz
Slightly improve touchwheel not-working-ness
It still doesn't work tho
Diffstat (limited to 'src/drivers/include/touchwheel.hpp')
-rw-r--r--src/drivers/include/touchwheel.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/drivers/include/touchwheel.hpp b/src/drivers/include/touchwheel.hpp
index fae4b237..e55455be 100644
--- a/src/drivers/include/touchwheel.hpp
+++ b/src/drivers/include/touchwheel.hpp
@@ -31,16 +31,16 @@ class TouchWheel {
TouchWheelData data_;
enum Register {
- FIRMWARE_VERSION = 0x1,
- DETECTION_STATUS = 0x2,
- KEY_STATUS_A = 0x3,
- KEY_STATUS_B = 0x4,
- SLIDER_POSITION = 0x5,
- CALIBRATE = 0x6,
- RESET = 0x7,
- LOW_POWER = 0x8,
- SLIDER_OPTIONS = 0x14,
- CHARGE_TIME = 0x15,
+ FIRMWARE_VERSION = 1,
+ DETECTION_STATUS = 2,
+ KEY_STATUS_A = 3,
+ KEY_STATUS_B = 4,
+ SLIDER_POSITION = 5,
+ CALIBRATE = 6,
+ RESET = 7,
+ LOW_POWER = 8,
+ SLIDER_OPTIONS = 14,
+ CHARGE_TIME = 15,
};
void WriteRegister(uint8_t reg, uint8_t val);