28 #ifndef _DISPLAY_BASE_H_ 29 #define _DISPLAY_BASE_H_ 46 extern uint8_t s_ssd1306_invertByte;
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS 215 #ifndef DOXYGEN_SHOULD_SKIP_THIS 216 void setFixedFont_oldStyle(
const uint8_t *progmemFont)
218 g_canvas_font.loadFixedFont_oldStyle(progmemFont);
233 void setFixedFont(
const uint8_t *progmemFont,
const uint8_t *secondaryFont)
253 void setFreeFont(
const uint8_t *progmemFont,
const uint8_t *secondaryFont =
nullptr)
EFontStyle m_fontStyle
currently active font style
void invertColors()
Changes foreground and background colors.
lcdint_t m_cursorY
current Y cursor position for text output
uint8_t lcduint_t
internal int type, used by the library.
struct _NanoPoint NanoPoint
Describes point.
NanoRect structure describes rectangle area.
const NanoPoint offsetEnd() const
Returns right-bottom point of the canvas in offset terms.
void swapDimensions()
Swaps width and height dimensions.
NanoFont * m_font
currently set font
lcduint_t m_w
width of NanoCanvas area in pixels
lcduint_t width()
Returns width of the display in pixels.
int8_t lcdint_t
internal int type, used by the library.
I & getInterface()
Returns reference to interface communicator.
lcduint_t height()
Returns height of the display in pixels.
uint16_t getColor()
Returns currently set color.
SSD1306 HAL IO communication functions.
void setFixedFont(const uint8_t *progmemFont, const uint8_t *secondaryFont)
Sets new font to use with print functions.
void setFont(NanoFont &font)
Sets new font to use with print functions.
void setColor(uint16_t color)
Sets color.
uint16_t m_color
current foreground color
NanoFont class implements work with fonts provided by the library: loading fonts, providing their par...
void setFixedFont(const uint8_t *progmemFont)
Sets new font to use with print functions.
void setSpacing(uint8_t spacing)
Sets spacing in pixels between 2 nearest characters.
uint16_t m_bgColor
current background color
NanoDisplayBase(I &intf)
Creates new empty base display object.
const NanoRect rect() const
Returns rectangle area, covered by canvas in offset terms.
lcduint_t m_h
height of NanoCanvas area in pixels
Basic structures of nano gfx library.
void setFontSpacing(uint8_t spacing)
Sets spacing for currently active font.
uint8_t m_textMode
Flags for current NanoCanvas mode.
NanoFont & getFont()
Returns reference to NanoFont object, currently used by Display.
void setTextCursor(lcdint_t x, lcdint_t y)
Function sets text cursor position for write() functions.
void loadFixedFont(const uint8_t *progmemFont)
Function allows to set another fixed font for the library.
lcdint_t m_cursorX
current X cursor position for text output
EFontStyle
Supported font styles.
Class implements basic display operations for the library: It stores reference to communication inter...
void loadSecondaryFont(const uint8_t *progmemUnicode)
Function allows sets secondary font for specific language.
void setFreeFont(const uint8_t *progmemFont, const uint8_t *secondaryFont=nullptr)
Sets new font to use with print functions.
void setBackground(uint16_t color)
Sets background color.
I & m_intf
communication interface with the display
void loadFreeFont(const uint8_t *progmemFont)
Function allows to set another free font for the library.
lcduint_t m_p
number of bits, used by width value: 3 equals to 8 pixels width