Guest User

H FILE

a guest
Apr 2nd, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #ifndef FOURDIGITS_h
  2. #define FOURDIGITS_h
  3. #include "Arduino.h"
  4.  
  5.  
  6. class FOURDIGITS
  7. {
  8. public:
  9. FOURDIGITS();
  10. void reset();
  11. int segmentInit(uint8_t lA, uint8_t lB, uint8_t lC, uint8_t lD, uint8_t lE, uint8_t lF, uint8_t lG, uint8_t lDP);
  12. int digitInit(uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4);
  13. int swrite(int digit, int num);
  14. int dPoint(uint8_t digit2);
  15. private:
  16. uint8_t Id1;
  17. uint8_t Id2;
  18. uint8_t Id3;
  19. uint8_t Id4;
  20. uint8_t ilA;
  21. uint8_t ilB;
  22. uint8_t ilC;
  23. uint8_t ilD;
  24. uint8_t ilE;
  25. uint8_t ilF;
  26. uint8_t ilG;
  27. uint8_t ilDP;
  28.  
  29. }
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment