release 0.1

This commit is contained in:
willem oldemans
2020-11-22 16:55:23 +01:00
parent 6d9f14f5b4
commit 43fcb87efc
10 changed files with 114 additions and 89 deletions

View File

@@ -4,10 +4,21 @@
#include <Arduino.h>
#include <vector>
#include "JC_Button.h"
#include "led.h"
bool anybutton( void );
void initButtons( void );
void handleButtons( void );
ToggleButton* getButton(unsigned int index);
class c_button : public ToggleButton
{
const e_ledcolor _color;
public:
c_button(uint8_t pin, e_ledcolor color) : ToggleButton(pin), _color(color){}
e_ledcolor getColor( void ){return _color;}
};
bool anybutton(void);
void initButtons(void);
void handleButtons(void);
c_button *getButton(unsigned int index);
#endif //BUTTONSH