mohan-bee/mini-mp3-player

Portable, battery-powered MP3 player hardware with USB charging, microSD storage, an MCU, VS10xx audio decoder, headphone output, status controls, and regulated power rails.

Version
1.2.0
License
unset
Stars
0

firmware/include/buttons.h

#ifndef PLAYER_BUTTONS_H
#define PLAYER_BUTTONS_H
#include <stdint.h>
typedef struct { uint8_t candidate,stable; uint32_t changed_at; } Buttons;
uint8_t buttons_poll(Buttons *state,uint8_t raw,uint32_t now);
#endif