Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Homepage
Import library
Public Member Functions |
|
| SSD1351 (PinName mosi_pin, PinName sclk_pin, PinName dc_pin, PinName cs_pin, PinName rst_pin) | |
|
Connect to an
SSD1351
on specified pins Connect to: (MOSI, SCLK) <-- Native SPI pins (DC, CS, RST) <-- Any digital pins.
|
|
| SSD1351 () | |
|
Connect to
SSD1351
on STMstation P.1, or default pins specified in defines in
SSD1351.h
Default pins are: MOSI PA_7 SCLK PA_5 CS PA_6 DC PC_5 RST PA_4.
|
|
| void | enableWrite () |
|
Enable writing directly to the VRAM.
|
|
| void | fillBuf (uint16_t fillcolor) |
|
Fill the buffer with a single color.
|
|
| void | writeBuf () |
|
Write the buffer to the VRAM.
|
|
| void | drawSpritePtr (const uint16_t s[], int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t mask) |
|
Draw a sprite from flash memory, into the buffer.
|
|
| void | fillCMask (uint8_t state) |
|
Fill the collision mask with a single value.
|
|
| void | drawCMask (const uint16_t s[], int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t mask, uint8_t state) |
|
Draw a sprite from flash memory, into the collision map.
|
|
| uint8_t | checkCollision (const uint16_t s[], int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t mask) |
|
Check if a sprite (not yet written to collision map) is going to collide with anything.
|
|
| void | drawChar (char c, int16_t x, int16_t y, uint16_t color, uint8_t zoom) |
|
Draw a single character.
|
|
| void | printText (const char c[], int16_t x, int16_t y, uint16_t color, uint8_t zoom) |
|
Draw a single character.
|
|
| void | setBuf (uint8_t *_buf) |
|
Set the display buffer.
|
|
| void | setCMask (uint8_t *_cmask) |
|
Set the collision map.
|
|
| void | fillRect (int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t color) |
|
Draw a filled rectangle to buffer.
|
|
| void | openRect (int16_t x, int16_t y, uint16_t w, uint16_t h, uint16_t color) |
|
Draw a open rectangle to buffer.
|
|
| void | drawHLine (int16_t x, int16_t y, int16_t length, uint16_t color) |
|
Draw a horizontal line without position calculations.
|
|
| void | drawVLine (int16_t x, int16_t y, int16_t length, uint16_t color) |
|
Draw a vertical line without position calculations.
|
|
| void | drawLine (int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color) |
|
Draw a line using Bresenham algorithm.
|
|
| void | openCircle (int16_t x0, int16_t y0, uint16_t radius, uint16_t color) |
|
Draw open circle.
|
|
| void | fillCircle (int16_t x0, int16_t y0, uint16_t radius, uint16_t color) |
|
Draw filled circle.
|
|