English
Language : 

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