mtthw-meyer / libdaisy-rust

Hardware Abstraction Layer implementation for Daisy boards
MIT License
47 stars 17 forks source link

Extended switch functionality #5

Closed mtthw-meyer closed 3 years ago

mtthw-meyer commented 3 years ago

Added logic for optional detection of holding and double pressing switches. Added enum for Pull Up vs Pull Down logic along with fn is_presssed to return state based on that.