|
| SPIDevice () INLINE=default |
| Create a new SPIDevice ; this sets up the CS pin for later use during transfers.
|
|
void | start_transfer () |
| Start an SPI transfer to this device. More...
|
|
void | end_transfer () INLINE |
| End the current SPI ransfer tot hsi device. More...
|
|
| AbstractSPIDevice (const AbstractSPIDevice &)=delete |
|
AbstractSPIDevice & | operator= (const AbstractSPIDevice &)=delete |
|
uint8_t | transfer (uint8_t data) |
| Transfer one byte to the currently selected SPI slave device through MOSI pin, and get the byte returned by the device through MISO pin. More...
|
|
void | transfer (uint8_t *data, uint16_t size) |
| Transfer an array of payload data to the currently selected SPI slave device through MOSI pin, and get all data bytes simultaneously received from that device through MISO pin. More...
|
|
void | transfer (const uint8_t *data, uint16_t size) |
| Transfer an array of payload data to the currently selected SPI slave device through MOSI pin; any data bytes simultaneously received from that device through MISO pin are lost. More...
|
|
void | transfer (uint8_t *data, uint16_t size, uint8_t sent) |
| Transfer the provided byte sent several times to the currently selected SPI slave device through MOSI pin, and get all data bytes simultaneously received from that device through MISO pin. More...
|
|
void | transfer (uint16_t size, uint8_t sent) |
| Transfer the provided byte sent several times to the currently selected SPI slave device through MOSI pin; any data bytes simultaneously received from that device through MISO pin are lost. More...
|
|
SPI device driver for Nokia 5110 display chip.
This driver offers various API to:
- display characters or strings
- display pixels All drawing API work on a pixel buffer in memory, never directly on the LCD device. Buffer is copied to the LCD device through
update()
calls.
- Warning
- This class shall be used along with
devices::display::Display
template class. It cannot be instantiated on its own.
All public API in LCD5110 is available through the encapsulating Display instance.
Once Display has been instantiated for LCD5110 driver, you should call the following API before it can be used to display anything:
reset()
device
set_display_bias()
to relevant value
set_display_contrast()
to relevant value
power_up()
device
set_color()
to define the pixel color (black or white) to use in all subsequent drawing primitives
set_mode()
if you want to use a specific drawing mode, other than default Mode::COPY
.
set_font()
if you intend to display text
- Warning
- For optimization reasons, text display can always occur at a
y
position that must be a multiple of 8, otherwise nothing will get drawn.
- Template Parameters
-
SCE | the output pin used for Chip Selection of the PCD8544 chip on the SPI bus. |
DC | the output pin used to select Data (high) or Command (low) mode of PCD8544 chip. |
- See also
- Display
Definition at line 115 of file lcd5110.h.