Repository navigation
Toggle Switch Behavior Fix
This release fixes the toggle switch (B8) to work correctly as a latching switch for controlling filter modulation.
What Changed
Fixed:
- Toggle switch now properly reads physical position using
RawState()instead of transition-basedDebounce() - Filter modulation now correctly syncs with the actual toggle position
- Toggle works immediately without needing to flip it OFF then ON
Removed:
- All MIDI debug logging (not used on this hardware)
- DaisyMidi library dependency
- Binary size reduced by ~11KB (135KB → 124KB)
Technical Details
The toggle switch is a physical latching switch with a metal bar that stays in position. The previous implementation used the Switch class Debounce() method designed for momentary buttons, which only detected press/release transitions. This caused the modulation to only enable when the toggle was moved from OFF to ON, not tracking the actual switch position.
The fix uses RawState() to directly read the GPIO state, making filterModulationEnabled properly sync with the toggle's physical position.
Installation
Flash no_such_verb.bin to your Daisy Patch SM using the Daisy Web Programmer or command-line tools.
Full Changelog: v1.7.0...v1.8.0