2 Commits

Author SHA1 Message Date
jonny_jr9
a1bb808b62 Rework/simplify chairAdjust - now using a class
- complete rework of chairAdjust.cpp/.hpp
  created a class cControlledRest which is more readable
  and saves a lot of duplicate code

- joystick.cpp: move chair control via joystick to
  chairAdjust.cpp (prevents dependency loop)
- button.cpp: fix bug instant idle when changing to ADJUST_CHAIR

Note: briefly tested this state on a breakout board:
Mode change and call of new class methods works.
2024-02-11 23:22:33 +01:00
jonny_jr9
9dfe1bddb2 Add chairAdjust driver, Add joystick control
- Add functions that control the relays for adjusting the armchair
  position
- Add function that controls the chair using joystick input
2023-10-08 14:19:04 +02:00