Replaced deprecated prog_char by char *.

This commit is contained in:
fmalpartida
2015-02-26 22:40:52 +01:00
parent e61593d354
commit 196dfc7b6a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ void LCD::createChar(uint8_t location, uint8_t charmap[])
}
#ifdef __AVR__
void LCD::createChar(uint8_t location, const prog_uchar charmap[])
void LCD::createChar(uint8_t location, const char *charmap)
{
location &= 0x7; // we only have 8 memory locations 0-7
+4 -2
View File
@@ -403,7 +403,7 @@ public:
/*!
@function
@abstract Creates a custom character for use on the LCD.
@discussion Create a custom character (glyph) for use on the LCD.
@discussion Create a custom character (glyph) for use on t{he LCD.
Most chipsets only support up to eight characters of 5x8 pixels. Therefore,
this methods has been limited to locations (numbered 0 to 7).
@@ -417,8 +417,10 @@ public:
@param location[in] LCD memory location of the character to create
(0 to 7)
@param charmap[in] the bitmap array representing each row of the character.
Usage for flash defined characters:
const char str_pstr[] PROGMEM = {};
*/
void createChar(uint8_t location, const prog_uchar charmap[]);
void createChar(uint8_t location, const char *charmap);
#endif // __AVR__
/*!