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.

28 lines
436 B

4 years ago
  1. #ifndef segNums_h
  2. #define segNums_h
  3. #include "Arduino.h"
  4. class SegDisp
  5. {
  6. public:
  7. SegDisp(int pins[8]);
  8. void zero(int state);
  9. void one(int state);
  10. void two(int state);
  11. void three(int state);
  12. void four(int state);
  13. void five(int state);
  14. void six(int state);
  15. void seven(int state);
  16. void eight(int state);
  17. void nine(int state);
  18. void dot(int state);
  19. void on();
  20. void off();
  21. private:
  22. int _pins[8];
  23. };
  24. #endif