Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

TwoDigitsDisplay.h

a guest Jun 5th, 2016 64 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top