OpenEarable / open-earable

OpenEarable Arduino firmware.
MIT License
241 stars 31 forks source link

how do we encode the button state as sensor? #35

Closed TobiasRoeddiger closed 11 months ago

TobiasRoeddiger commented 11 months ago

read 1 = pressed, read 0 = released onPress notify 1, onRelease notify 0

TobiasRoeddiger commented 11 months ago

if necessary, debounce in software with threshold time

kuettner97 commented 11 months ago

read 1 = pressed, read 0 = released onPress notify 1, onRelease notify 0

maybe state, timestamp last press, timestamp last release

TobiasRoeddiger commented 11 months ago

timestamp is internal to the device. let‘s keep it simple as described abovr.