Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcd7df0bea |
@@ -1,7 +1,3 @@
|
|||||||
Version 1.5.2
|
|
||||||
|
|
||||||
- ISSUE #9: Backwards compatibility with previous Arduino IDE.
|
|
||||||
|
|
||||||
Version 1.5.1
|
Version 1.5.1
|
||||||
|
|
||||||
- ISSUE #7: New character data in default font for '*';
|
- ISSUE #7: New character data in default font for '*';
|
||||||
|
|||||||
@@ -49,6 +49,11 @@ TM1638::TM1638(byte dataPin, byte clockPin, byte strobePin, boolean activateDisp
|
|||||||
digitalWrite(strobePin, HIGH);
|
digitalWrite(strobePin, HIGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TM1638::~TM1638()
|
||||||
|
{
|
||||||
|
// nothing to do
|
||||||
|
}
|
||||||
|
|
||||||
void TM1638::setupDisplay(boolean active, byte intensity)
|
void TM1638::setupDisplay(boolean active, byte intensity)
|
||||||
{
|
{
|
||||||
sendCommand(0x80 | (active ? 8 : 0) | min(7, intensity));
|
sendCommand(0x80 | (active ? 8 : 0) | min(7, intensity));
|
||||||
|
|||||||
1
TM1638.h
1
TM1638.h
@@ -35,6 +35,7 @@ class TM1638
|
|||||||
public:
|
public:
|
||||||
/** Instantiate a tm1638 module specifying the display state, the starting intensity (0-7) data, clock and stobe pins. */
|
/** Instantiate a tm1638 module specifying the display state, the starting intensity (0-7) data, clock and stobe pins. */
|
||||||
TM1638(byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay = true, byte intensity = 7);
|
TM1638(byte dataPin, byte clockPin, byte strobePin, boolean activateDisplay = true, byte intensity = 7);
|
||||||
|
virtual ~TM1638();
|
||||||
|
|
||||||
/** Set the display (segments and LEDs) active or off and intensity (range from 0-7). */
|
/** Set the display (segments and LEDs) active or off and intensity (range from 0-7). */
|
||||||
void setupDisplay(boolean active, byte intensity);
|
void setupDisplay(boolean active, byte intensity);
|
||||||
|
|||||||
Reference in New Issue
Block a user