|
LCD-14048 Datasheet, PDF (11/33 Pages) SparkFun Electronics – TeensyView Hookup Guide | |||
|
◁ |
⢠void clear(* uint8_t mode, * uint8_t c) â Clear or replace
screen buffer or SSD1306âs memory with a character. To clear
GDRAM inside the LCD controller, pass in the variable mode = ALL
with c character and to clear screen page buffer, pass in the variable
mode = PAGE with c character.
⢠void invert(boolean inv) â Invert display. The WHITE color of the
display will turn to BLACK, and the BLACK will turn to WHITE.
⢠void contrast(* uint8_t contrast) â Set OLED contrast value
from 0 to 255. Note: Contrast level is not very obvious.
⢠void setCursor(* uint8_t x, * uint8_t y) â Set TeensyViewâs
cursor position to x,y.
⢠void flipVertical(boolean flip) â Flip the graphics on the
OLED vertically.
⢠void flipHorizontal(boolean flip) â Flip the graphics on the
OLED horizontally.
⢠uint8_t getLCDWidth(void) â The width of the LCD return as byte.
⢠uint8_t getLCDHeight(void) â The height of the LCD return as
byte.
Display Scrolling
Note: For scrolling features, refer to the OLED Memory Map section of
our MicroView hookup guide for explanation of the rows and columns.
⢠void scrollRight(* uint8_t start, * uint8_t stop) â Right
scrolling. Set row start to row stop on the OLED to scroll right.
⢠void scrollLeft(* uint8_t start, * uint8_t stop) â Left
scrolling. Set row start to row stop on the OLED to scroll left.
⢠void scrollVertRight(* uint8_t start, * uint8_t stop) â Right
vertical scrolling. Set column start to row stop on the OLED to scroll
right.
⢠void scrollVertLeft(* uint8_t start, * uint8_t stop) â Left
vertical scrolling. Set column start to row stop on the OLED to scroll
left.
⢠void scrollStop(void) â Stop the scrolling of graphics on the
OLED.
Font Functions
⢠uint8_t getFontWidth(void) â Get font width. The current fontâs
width return as byte.
⢠uint8_t getFontHeight(void) â Get font height. The current fontâs
height return as byte.
⢠uint8_t getTotalFonts(void) â Get total fonts. Return the total
number of fonts loaded into the TeensyViewâs flash memory.
⢠uint8_t getFontType(void) â Get font type. Return the font type
number of the current font.
⢠uint8_t setFontType(* uint8_t type) â Set font type. Set the
current font type number (i.e., changing to different fonts based on
the type provided).
Page 11 of 33
|
▷ |