English
Language : 

LCD-14048 Datasheet, PDF (13/33 Pages) SparkFun Electronics – TeensyView Hookup Guide
Page 13 of 33
• void circle(* uint8_t x, * uint8_t y, * uint8_t radius, * uint8_t color, * uint8_t mode)
— Draw circle with radius using color and mode at x,y of the screen
buffer.
• void circleFill(* uint8_t x0, * uint8_t y0, * uint8_t radius)
— Draw filled circle with radius using current fore color and current
draw mode at x,y of the screen buffer.
• void circleFill(* uint8_t x0, * uint8_t y0, * uint8_t radius, * uint8_t color, * uint8_t mode)
— Draw filled circle with radius using color and mode at x,y of the
screen buffer. Uses the Bresenham’s circle algorithm with a few
modifications to paint the circle without overlapping draw operations.
Misc. Drawing
• void drawChar(* uint8_t x, * uint8_t y, * uint8_t c) — Draw
character c using current color and current draw mode at x,y.
• void drawChar(* uint8_t x, * uint8_t y, * uint8_t c, * uint8_t color, * uint8_t mode)
— Draw character c using color and draw mode at x,y.
• void drawBitmap(void) — Draw bitmap image stored elsewhere in
the program to the OLED screen.
• void setColor(* uint8_t color) — Set the current draw’s color.
Only WHITE and BLACK available.
• void setDrawMode(* uint8_t mode) — Set current draw mode with
NORM or XOR.
Misc. Under-the-Hood Functions
• virtual size_t write(uint8_t) — Override Arduino’s Print so that
we can use uView.print().
• void data(uint8_t c); — SPI data. Send 1 data byte via SPI to
SSD1306 controller.
• void setColumnAddress(uint8_t add) — Set SSD1306 column
address. Send column address command and address to the
SSD1306 OLED controller.
• void setPageAddress(uint8_t add) — Set SSD1306 page address.
Send page address command and address to the SSD1306 OLED
controller.
• void command(uint8_t c) — Send 1 command byte.
• uint8_t * getScreenBuffer(void) — Get pointer to screen buffer.
Return a pointer to the start of the RAM screen buffer for direct
access.
System-Level Reference
• TeensyView(uint8_t rst, uint8_t dc, uint8_t cs, uint8_t sck, uint8_t mosi)
— Construct TeensyView object with the pins specified in the
arguments.
• static void begin() — SPI Initialization. Set up I/O pins for SPI
port, then send initialization commands to the SSD1306 controller
inside the OLED. Pins to use have been specified in the constructor.
Example: ScreenDemo With Default
Configuration
This demo shows off the graphic and text commands that are within the
TeensyView library.
Hardware Requirements
• Teensy 3.1 to 3.6, or LC