arduino based wordclock
https://www.champonthis.de/projects/wordclock
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
275 B
20 lines
275 B
#ifndef Button_h
|
|
#define Button_h
|
|
|
|
#include <Arduino.h>
|
|
|
|
typedef void (*ButtonCallbackFunction)();
|
|
|
|
class Button
|
|
{
|
|
public:
|
|
Button(uint8_t _pin, uint8_t _mode);
|
|
void begin();
|
|
void loop(ButtonCallbackFunction callback);
|
|
|
|
private:
|
|
uint8_t mode;
|
|
uint8_t pin;
|
|
};
|
|
|
|
#endif
|