Skip to content

Commit

Permalink
Merge branch 'mega' of github.com:letscontrolit/ESPEasy into mega
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Oct 1, 2017
2 parents 7c84876 + e6bd9ad commit ec83cf3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/_P057_HT16K33_LED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
// (2) MX,<param>,<param>,<param>, ... with hexadecimal values
// (3) MNUM,<param>,<param>,<param>, ... with decimal values for 7-segment displays
// (4) MPRINT,<text> with decimal values for 7-segment displays
// (5) MBR,<0-15> set display brightness, between 0 and 15

// List of M* params:
// (a) <value>
Expand Down Expand Up @@ -169,7 +170,12 @@ boolean Plugin_057(byte function, struct EventStruct *event, String& string)
Plugin_057_M->TransmitRowBuffer();
success = true;
}

else if (command == F("mbr")) {
int paramPos = getParamStartPos(string, 2);
uint8_t brightness = string.substring(paramPos).toInt();
Plugin_057_M->SetBrightness(brightness);
success = true;
}
else if (command == F("m") || command == F("mx") || command == F("mnum"))
{
String param;
Expand Down

0 comments on commit ec83cf3

Please sign in to comment.