28 static const uint8_t FIXED_FONT_WIDTH = 6;
30 static const uint8_t FIXED_FONT_HEIGHT = 1;
34 const char str[2] = {
static_cast<char>(ch),
'\0' };
39 if ( (m_xpos >
width() - FIXED_FONT_WIDTH) || (ch ==
'\n') )
42 m_ypos += FIXED_FONT_HEIGHT;
44 if ( m_ypos > (
height() >> 3) - FIXED_FONT_HEIGHT )
49 m_xpos += FIXED_FONT_WIDTH;
void ssd1306_clearScreen()
uint8_t ssd1306_charF6x8(uint8_t x, uint8_t y, const char ch[], EFontStyle style)
virtual size_t write(uint8_t ch)