Support for specifying dots on setDisplayToString

This commit is contained in:
rjbatista@gmail.com
2011-11-14 17:41:12 +00:00
parent 51c24bfaee
commit 8cd887a567
3 changed files with 31 additions and 27 deletions

View File

@@ -51,9 +51,9 @@ class TM1638
/** Clear the display */
void clearDisplay();
/** Set the display to the string (defaults to built in font) */
void setDisplayToString(const char* string, const byte font[] = FONT_DEFAULT);
void setDisplayToString(const char* string, const byte dots = 0, const byte font[] = FONT_DEFAULT);
/** Set the display to the String (defaults to built in font) */
void setDisplayToString(String string, const byte font[] = FONT_DEFAULT);
void setDisplayToString(String string, const byte dots = 0, const byte font[] = FONT_DEFAULT);
/** Set the LED at pos to color (TM1638_COLOR_RED, TM1638_COLOR_GREEN or both) */
void setLED(byte color, byte pos);