Download the file
  1. #ifndef CAMERA_H
  2. #define CAMERA_H
  3.  
  4. #include "hsphoto.h"
  5. #include "digital_output.h"
  6.  
  7. class Camera {
  8. public:
  9. Camera(uint8_t focus_pin, uint8_t shutter_pin, uint8_t flash_pin):
  10. focus(focus_pin),shutter(shutter_pin),flash(flash_pin) {}
  11. void open_shutter(uint8_t step);
  12. void shoot();
  13. void close_shutter();
  14.  
  15. const DigitalOutput focus;
  16. const DigitalOutput shutter;
  17. const DigitalOutput flash;
  18. };
  19.  
  20. #endif
  21.  
  22. // vim:ft=arduino
  23.