Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef FOURDIGITS_h
- #define FOURDIGITS_h
- #include "Arduino.h"
- class FOURDIGITS
- {
- public:
- FOURDIGITS();
- void reset();
- 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);
- int digitInit(uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4);
- int swrite(int digit, int num);
- int dPoint(uint8_t digit2);
- private:
- uint8_t Id1;
- uint8_t Id2;
- uint8_t Id3;
- uint8_t Id4;
- uint8_t ilA;
- uint8_t ilB;
- uint8_t ilC;
- uint8_t ilD;
- uint8_t ilE;
- uint8_t ilF;
- uint8_t ilG;
- uint8_t ilDP;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment