Skip to content

Commit

Permalink
compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
vden75 committed Jan 14, 2019
1 parent 027d415 commit 27e80ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TM16XX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ TM16XX::TM16XX(byte dataPin, byte clockPin, byte strobePin, byte displays, boole
digitalWrite(clockPin, HIGH);

sendCommand(0x40);
sendCommand(0x80 | (activateDisplay ? 8 : 0) | min(7, intensity));
// sendCommand(0x80 | (activateDisplay ? 8 : 0) | min(7, intensity));
sendCommand(0x80 | (activateDisplay ? 8 : 0) | min(intensityMax, intensity)); // // max intensity data

digitalWrite(strobePin, LOW);
send(0xC0);
Expand All @@ -53,7 +54,8 @@ TM16XX::TM16XX(byte dataPin, byte clockPin, byte strobePin, byte displays, boole

void TM16XX::setupDisplay(boolean active, byte intensity)
{
sendCommand(0x80 | (active ? 8 : 0) | min(7, intensity));
// sendCommand(0x80 | (active ? 8 : 0) | min(7, intensity));
sendCommand(0x80 | (active ? 8 : 0) | min(intensityMax, intensity)); // // max intensity data

// necessary for the TM1640
digitalWrite(strobePin, LOW);
Expand Down

0 comments on commit 27e80ab

Please sign in to comment.