Guest User

TwoDigitsDisplay.h

a guest
Jun 5th, 2016
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Arduino.h>
  2.  
  3. class TwoDigitsDisplay {
  4. private:
  5.     uint8_t pin_address_0;
  6.     uint8_t pin_address_1;
  7.     uint8_t pin_address_2;
  8.     uint8_t pin_write_0;
  9.     uint8_t pin_write_1;
  10.     uint8_t pin_data;
  11.    
  12.     uint8_t bcdToSevenSegmentBits(uint8_t bcd);
  13.     void setBit(uint8_t digit, uint8_t address, bool bit);
  14.    
  15. public:
  16.     TwoDigitsDisplay(
  17.         uint8_t pin_address_0,
  18.         uint8_t pin_address_1,
  19.         uint8_t pin_address_2,
  20.         uint8_t pin_write_0,
  21.         uint8_t pin_write_1,
  22.         uint8_t pin_data
  23.     );
  24.    
  25.     void setValue(uint8_t value);
  26. };
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×