Fixed error in sample usage comment

This commit is contained in:
Khoa Ton 2020-04-10 01:56:23 -07:00
parent eb796f8976
commit 90d294fc47
1 changed files with 5 additions and 4 deletions

View File

@ -105,10 +105,11 @@ void SevensegDrawStringAt(uint16_t x, uint16_t y, char *str, uint16_t color, uin
// [prefix(es) chars]digits // [prefix(es) chars]digits
// Some combinations won't make sense. // Some combinations won't make sense.
// Reference: https://learn.adafruit.com/adafruit-led-backpack/1-2-inch-7-segment-backpack-arduino-wiring-and-setup // Reference: https://learn.adafruit.com/adafruit-led-backpack/1-2-inch-7-segment-backpack-arduino-wiring-and-setup
// Valid combinations: // Some sample valid combinations:
// x32 => 20 // 787 -> 787
// st:241 => 04:01 // x47 -> 2F
// sT240 => 4 01 // st:241 -> 04:01
// sT241 -> 4 01
switch (str[i]) { switch (str[i]) {
case 'x': // print given dec value as hex case 'x': // print given dec value as hex
hex = true; hex = true;