|
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
|
▷ |