SSD1306Ascii
|
Class for SPI displays using software SPI. More...
#include <SSD1306AsciiSoftSpi.h>
Public Member Functions | |
void | begin (const DevType *dev, uint8_t cs, uint8_t dc, uint8_t clk, uint8_t data) |
Initialize the display controller. More... | |
void | begin (const DevType *dev, uint8_t cs, uint8_t dc, uint8_t clk, uint8_t data, uint8_t rst) |
Initialize the display controller. More... | |
uint8_t | charWidth (uint8_t c) |
Determine the width of a character. More... | |
void | clear () |
Clear the display and set the cursor to (0, 0). | |
void | clear (uint8_t c0, uint8_t c1, uint8_t r0, uint8_t r1) |
Clear a region of the display. More... | |
void | clearField (uint8_t col, uint8_t row, uint8_t n) |
Clear a field of n fieldWidth() characters. More... | |
void | clearToEOL () |
Clear the display to the end of the current line. More... | |
uint8_t | col () |
uint8_t | displayHeight () |
void | displayRemap (bool mode) |
Set display to normal or 180 degree remap mode. More... | |
uint8_t | displayRows () |
uint8_t | displayWidth () |
size_t | fieldWidth (uint8_t n) |
Width of a field in pixels. More... | |
const uint8_t * | font () |
uint8_t | fontCharCount () |
char | fontFirstChar () |
uint8_t | fontHeight () |
uint8_t | fontRows () |
uint8_t | fontWidth () |
void | home () |
Set the cursor position to (0, 0). | |
void | init (const DevType *dev) |
Initialize the display controller. More... | |
uint8_t | letterSpacing () |
uint8_t | magFactor () |
uint8_t | row () |
void | set1X () |
Set the character magnification factor to one. | |
void | set2X () |
Set the character magnification factor to two. | |
void | setCol (uint8_t col) |
Set the current column number. More... | |
void | setContrast (uint8_t value) |
Set the display contrast. More... | |
void | setCursor (uint8_t col, uint8_t row) |
Set the cursor position. More... | |
void | setFont (const uint8_t *font) |
Set the current font. More... | |
void | setLetterSpacing (uint8_t pixels) |
Set letter-spacing. setFont() will restore default letter-spacing. More... | |
void | setRow (uint8_t row) |
Set the current row number. More... | |
void | setScroll (bool enable) |
Enable or disable scroll mode. More... | |
void | ssd1306WriteCmd (uint8_t c) |
Write a command byte to the display controller. More... | |
void | ssd1306WriteRam (uint8_t c) |
Write a byte to RAM in the display controller. More... | |
void | ssd1306WriteRamBuf (uint8_t c) |
Write a byte to RAM in the display controller. More... | |
size_t | strWidth (const char *str) |
size_t | write (uint8_t c) |
Display a character. More... | |
size_t | write (const char *s) |
Display a string. More... | |
Class for SPI displays using software SPI.
|
inline |
Initialize the display controller.
[in] | dev | A device initialization structure. |
[in] | cs | The display controller chip select pin. |
[in] | dc | The display controller cdata/command pin. |
[in] | clk | The SPI clock pin. |
[in] | data | The SPI MOSI pin. |
|
inline |
Initialize the display controller.
[in] | dev | A device initialization structure. |
[in] | cs | The display controller chip select pin. |
[in] | dc | The display controller cdata/command pin. |
[in] | clk | The SPI clock pin. |
[in] | data | The SPI MOSI pin. |
[in] | rst | The display controller reset pin. |
|
inherited |
Determine the width of a character.
[in] | c | Character code. |
|
inherited |
Clear a region of the display.
[in] | c0 | Starting column. |
[in] | c1 | Ending column. |
[in] | r0 | Starting row; |
[in] | r1 | Ending row; |
|
inherited |
Clear a field of n fieldWidth() characters.
[in] | col | Field start column. |
[in] | row | Field start row. |
[in] | n | Number of characters in the field. |
|
inherited |
Clear the display to the end of the current line.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Set display to normal or 180 degree remap mode.
[in] | mode | true for normal mode, false for remap mode. |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Width of a field in pixels.
[in] | n | Number of characters in the field. |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
Initialize the display controller.
[in] | dev | A display initialization structure. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Set the current column number.
[in] | col | The desired column number in pixels. |
|
inherited |
Set the display contrast.
[in] | value | The contrast level in th range 0 to 255. |
|
inherited |
Set the cursor position.
[in] | col | The column number in pixels. |
[in] | row | the row number in eight pixel rows. |
|
inherited |
Set the current font.
[in] | font | Pointer to a font table. |
|
inlineinherited |
Set letter-spacing. setFont() will restore default letter-spacing.
[in] | pixels | letter-spacing in pixels before magnification. |
|
inherited |
Set the current row number.
[in] | row | the row number in eight pixel rows. |
|
inherited |
Enable or disable scroll mode.
[in] | enable | true enable scroll on new line false disable scroll. |
|
inlineinherited |
Write a command byte to the display controller.
[in] | c | The command byte. |
|
inherited |
Write a byte to RAM in the display controller.
[in] | c | The data byte. |
|
inherited |
Write a byte to RAM in the display controller.
[in] | c | The data byte. |
|
inherited |
[in] | str | The pointer to string. |
|
inherited |
Display a character.
[in] | c | The character to display. |
|
inherited |
Display a string.
[in] | s | The string to display. |