Download the file
  1. #ifndef TEST_SCREEN_H
  2. #define TEST_SCREEN_H
  3.  
  4. #include "hsphoto.h"
  5. #include "screen.h"
  6. #include "digital_input.h"
  7.  
  8. class TestScreen : public Screen, public DigitalInputObserver {
  9. public:
  10. TestScreen(void) {}
  11. void refresh();
  12. uint8_t click();
  13. uint8_t clockwise() { return selected; }
  14. uint8_t counter_clockwise() { return selected; }
  15. void on_rise(); // from DigitalInputObserver
  16. void on_fall(); // from DigitalInputObserver
  17.  
  18. private:
  19. void show_static();
  20. void print_continuous();
  21. void print_interrupted();
  22.  
  23. uint8_t selected;
  24. };
  25.  
  26. #endif
  27. // vim:ft=arduino
  28.