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;
uint8_t ssd1306_printFixed(uint8_t xpos, uint8_t y, const char *ch, EFontStyle style)
void ssd1306_clearScreen()
virtual size_t write(uint8_t ch)