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.

25 lines
694 B

5 years ago
  1. #include <ControlStates.h>
  2. ControlSecondsState::ControlSecondsState(DS3231 &_ds3231)
  3. {
  4. ds3231 = _ds3231;
  5. }
  6. void ControlSecondsState::leftPressed(ViewStates &viewState, ControlStates &controlState){};
  7. void ControlSecondsState::rightPressed(ViewStates &viewState, ControlStates &controlState){};
  8. void ControlSecondsState::enterPressed(ViewStates &viewState, ControlStates &controlState)
  9. {
  10. controlState = ControlStates::VIEW;
  11. };
  12. void ControlSecondsState::decrementPressed(ViewStates &viewState, ControlStates &controlState)
  13. {
  14. ds3231.decrementSeconds();
  15. };
  16. void ControlSecondsState::incrementPressed(ViewStates &viewState, ControlStates &controlState)
  17. {
  18. ds3231.incrementSeconds();
  19. };