My Project
InvertedTM1638.h
Go to the documentation of this file.
1 /*
2 InvertedTM1638.h - Library for an inverted TM1638.
3 
4 Copyright (C) 2011 Ricardo Batista <rjbatista at gmail dot com>
5 
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the version 3 GNU General Public License as
8 published by the Free Software Foundation.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef InvertedTM1638_h
20 #define InvertedTM1638_h
21 
22 #if defined(ARDUINO) && ARDUINO >= 100
23  #include "Arduino.h"
24 #else
25  #include "WProgram.h"
26 #endif
27 
28 #include "TM1638.h"
29 
30 class InvertedTM1638 : public TM1638
31 {
32  public:
34  InvertedTM1638(byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay = true, byte intensity = 7);
35 
37  virtual void setLED(byte color, byte pos);
39  virtual byte getButtons();
40 
41  protected:
42  virtual void sendChar(byte pos, byte data, boolean dot);
43 };
44 
45 #endif
byte dataPin
Definition: TM16XX.h:76
byte strobePin
Definition: TM16XX.h:78
byte clockPin
Definition: TM16XX.h:77
virtual void sendChar(byte pos, byte data, boolean dot)
Definition: InvertedTM1638.cpp:54
Definition: TM1638.h:35
virtual byte getButtons()
Definition: InvertedTM1638.cpp:38
virtual void setLED(byte color, byte pos)
Definition: InvertedTM1638.cpp:33
InvertedTM1638(byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay=true, byte intensity=7)
Definition: InvertedTM1638.cpp:27
Definition: InvertedTM1638.h:30