update type for fonts (char* -> uint8_t*)

This commit is contained in:
Chris Liebman 2019-07-18 08:37:09 -07:00
parent 5133f09bfd
commit db7b418d3c
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
// Created by http://oleddisplay.squix.ch/ Consider a donation
// In case of problems make sure that you are using the font file with the correct version!
const char DialogInput_plain_10[] PROGMEM = {
const uint8_t DialogInput_plain_10[] PROGMEM = {
0x06, // Width: 6
0x0D, // Height: 13
0x20, // First Char: 32

View File

@ -145,7 +145,7 @@ void Display::display()
_dsp.display();
}
void Display::font(const char* fontData)
void Display::font(const uint8_t* fontData)
{
_dsp.setFont(fontData);
}

View File

@ -29,7 +29,7 @@ public:
void clear();
void display();
void align(OLEDDISPLAY_TEXT_ALIGNMENT alignment);
void font(const char* fontData);
void font(const uint8_t* fontData);
void print(int16_t x, int16_t y, const char* fmt, ...);
void vprint(int16_t x, int16_t y, const char* fmt, va_list ap);