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.
26 lines
694 B
26 lines
694 B
|
|
#include <ControlStates.h>
|
|
|
|
ControlSecondsState::ControlSecondsState(DS3231 &_ds3231)
|
|
{
|
|
ds3231 = _ds3231;
|
|
}
|
|
|
|
void ControlSecondsState::leftPressed(ViewStates &viewState, ControlStates &controlState){};
|
|
|
|
void ControlSecondsState::rightPressed(ViewStates &viewState, ControlStates &controlState){};
|
|
|
|
void ControlSecondsState::enterPressed(ViewStates &viewState, ControlStates &controlState)
|
|
{
|
|
controlState = ControlStates::VIEW;
|
|
};
|
|
|
|
void ControlSecondsState::decrementPressed(ViewStates &viewState, ControlStates &controlState)
|
|
{
|
|
ds3231.decrementSeconds();
|
|
};
|
|
|
|
void ControlSecondsState::incrementPressed(ViewStates &viewState, ControlStates &controlState)
|
|
{
|
|
ds3231.incrementSeconds();
|
|
};
|