|
| NOKIA_5110 (int16_t width, int16_t height) |
| init the LCD class object
|
|
virtual void | drawPixel (int16_t x, int16_t y, uint8_t color) override |
| Set a single pixel in the buffer.
|
|
DisplayRet::Ret_Codes_e | LCDSPISetup (spi_inst_t *spi, uint32_t spiBaudRate, int8_t cd, int8_t rst, int8_t cs, int8_t sclk, int8_t din) |
| initialise LCD pinmodes and SPI setup
|
|
void | LCDInit (bool Inverse, uint8_t Contrast, uint8_t Bias) |
| Init the LCD command sequence, called from begin This sends the commands to the PCD8544 to init LCD.
|
|
DisplayRet::Ret_Codes_e | LCDSetBufferPtr (uint8_t width, uint8_t height, std::span< uint8_t > buffer) |
| sets the buffer pointer to the users screen data buffer
|
|
DisplayRet::Ret_Codes_e | LCDupdate (void) |
| updates the LCD i.e. writes the shared buffer to the active screen pointed to by ActiveBuffer
|
|
DisplayRet::Ret_Codes_e | LCDclearBuffer (void) |
| clears the buffer of the active screen pointed to by ActiveBuffer
|
|
void | LCDBuffer (std::span< uint8_t > data) |
| Draw an array to the screen.
|
|
void | LCDenableSleep (void) |
| Turn on sleep mode.
|
|
void | LCDdisableSleep (void) |
| Turn off sleep mode.
|
|
bool | LCDIsSleeping (void) |
| LCDisSleeping.
|
|
void | LCDSPIoff (void) |
| End SPI operations.
|
|
void | LCDPowerDown (void) |
| Powerdown procedure for LCD see datasheet P40.
|
|
void | LCDSetContrast (uint8_t con) |
| Function to set contrast passed a byte.
|
|
void | LCDfillScreen (uint8_t fill=0xFF) |
| Writes the buffer (with pattern) to the LCD.
|
|
void | LCDinvertDisplay (bool inv) |
| inverts color on display
|
|
void | LCDgotoXY (uint8_t x, uint8_t y) |
| LCDgotoXY gotoXY routine to position cursor (x,y)
|
|
void | LCDfillBlock (uint8_t FillData=0xFF, uint8_t RowBlockNum=0) |
| LCDFillBlock Clears one of the 6 row blocks(one byte height) on LCD.
|
|
| displaylib_graphics (int16_t w, int16_t h) |
| init the OLED Graphics class object constructor
|
|
void | drawLine (int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint8_t color) |
| draws a line from (x0,y0) to (x1,y1).
|
|
void | drawFastVLine (int16_t x, int16_t y, int16_t h, uint8_t color) |
| Draws a vertical line starting at (x,y) with height h.
|
|
void | drawFastHLine (int16_t x, int16_t y, int16_t w, uint8_t color) |
| Draws a horizontal line starting at (x,y) with width w.
|
|
void | drawRect (int16_t x, int16_t y, int16_t w, int16_t h, uint8_t color) |
| draws rectangle at (x,y) where h is height and w is width of the rectangle.
|
|
void | fillRect (int16_t x, int16_t y, int16_t w, int16_t h, uint8_t color) |
| fills a rectangle starting from coordinates (x,y) with width of w and height of h.
|
|
void | fillScreen (uint8_t color) |
| Fills the whole screen with a given color.
|
|
void | drawCircle (int16_t x0, int16_t y0, int16_t r, uint8_t color) |
| Draws a circle with center coordinates (centerX, centerY) and a given radius.
|
|
void | fillCircle (int16_t x0, int16_t y0, int16_t r, uint8_t color) |
| fills a circle where (x0,y0) are center coordinates an r is circle radius.
|
|
void | drawTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color) |
| draws a triangle of coordinates (x0,y0), (x1,y1) and (x2,y2).
|
|
void | fillTriangle (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint8_t color) |
| Fills a triangle defined by the coordinates (x0, y0), (x1, y1), and (x2, y2).
|
|
void | drawRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint8_t color) |
| draws a rectangle with rounded edges
|
|
void | fillRoundRect (int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint8_t color) |
| Fills a rectangle with rounded edges.
|
|
void | setCursor (int16_t x, int16_t y) |
| set the cursor position
|
|
virtual size_t | write (uint8_t) |
| write method used in the print class when user calls print
|
|
DisplayRet::Ret_Codes_e | writeChar (int16_t x, int16_t y, char value) |
| Write 1 character on OLED.
|
|
DisplayRet::Ret_Codes_e | writeCharString (int16_t x, int16_t y, char *text) |
| Write Text character array on OLED.
|
|
void | setTextWrap (bool w) |
| turn on or off screen _textwrap of the text (fonts 1-6)
|
|
void | setDrawBitmapAddr (bool mode) |
| sets the data addressing mode in drawBitmap function.
|
|
DisplayRet::Ret_Codes_e | drawBitmap (int16_t x, int16_t y, std::span< const uint8_t > bitmap, int16_t w, int16_t h, uint8_t color, uint8_t bg) |
| Draw a 1-bit color bitmap.
|
|
int16_t | height (void) const |
| Gets the height of the display (per current _rotation)
|
|
int16_t | width (void) const |
| Gets the width of the display (per current _rotation)
|
|
display_rotate_e | getRotation (void) |
| Gets the _rotation of the display.
|
|
void | setRotation (display_rotate_e r) |
| Sets the _rotation of the display.
|
|
void | drawLineAngle (int16_t x, int16_t y, int angle, uint8_t start, uint8_t length, int offset, uint8_t color) |
| Draws a line using an angle and length as parameters. This function draws a line starting from (x, y) , extending in the direction specified by angle , with a given length . The function also allows applying an offset to the angle before computing the line’s end coordinates.
|
|
void | drawQuadrilateral (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, uint8_t color) |
| Draws a quadrilateral (four-sided polygon) by connecting four points with lines. This function draws a quadrilateral by drawing four lines between the given vertices. The lines are drawn in the order: (x0, y0) to (x1, y1), (x1, y1) to (x2, y2), (x2, y2) to (x3, y3), and finally (x3, y3) back to (x0, y0).
|
|
void | fillQuadrilateral (int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, uint8_t color) |
| Fills a quadrilateral with the specified color using triangles. This function fills a quadrilateral by dividing it into triangles and filling them individually. The quadrilateral is filled by calling the fillTriangle function three times with appropriate vertex coordinates. The useTriangleSplit parameter determines whether the quadrilateral is divided into two triangles or if only one triangle is used.
|
|
DisplayRet::Ret_Codes_e | drawPolygon (int16_t x, int16_t y, uint8_t sides, int16_t diameter, float rotation, bool fill, uint8_t color) |
| Draws a polygon with a specified number of sides, diameter, rotation, and color. This function draws a regular polygon by connecting points equally spaced around a circle, with each point having a distance defined by the diameter. The polygon is rotated by the given angle (in degrees) before being drawn. The number of sides is enforced to be at least 3.
|
|
void | drawArc (uint16_t cx, uint16_t cy, uint16_t radius, uint16_t thickness, float startAngle, float endAngle, uint8_t color) |
| Draw an arc on the TFT display. This function draws an arc between two angles (start and end) on a circle with a given radius.
|
|
void | drawSimpleArc (int16_t cx, int16_t cy, int16_t radius, float startAngle, float endAngle, uint8_t color) |
| Draw a simple arc of one pixel on the display( no offsets , thickness or maximum arc calculations) This function draws an arc between two angles (start and end) on a circle with a given radius.
|
|
void | drawEllipse (int16_t cx, int16_t cy, int16_t semiMajorAxis, int16_t semiMinorAxis, bool fill, uint8_t color) |
| Draw an ellipse on the display. This function uses the midpoint ellipse algorithm to efficiently draw an ellipse centered at (cx, cy) with the given semi-major (horizontal) and semi-minor (vertical) axes.
|
|
DisplayRet::Ret_Codes_e | drawDotGrid (int16_t x, int16_t y, int16_t w, int16_t h, uint8_t DotGridGap, uint8_t color) |
| Draws a grid of dots on the screen starting from the given coordinates. This function draws a grid of pixels with a specified gap between them. It checks that the provided coordinates and dimensions are within the screen bounds and adjusts them if necessary. It also validates The grid of dots gap value and defaults it to 2 if invalid.
|
|
float | getArcAngleMax () const |
| Get the current maximum angle of the arc.
|
|
void | setArcAngleMax (float arcAngleMax) |
| Set a new maximum angle for the arc.
|
|
int | getArcAngleOffset () const |
| Get the current angle offset.
|
|
void | setArcAngleOffset (int arcAngleOffset) |
| Set a new angle offset.
|
|
| displaylib_fonts () |
| init the OLED font class object constructor
|
|
DisplayRet::Ret_Codes_e | setFont (std::span< const uint8_t > font) |
| SSD1306_SetFont.
|
|
void | setInvertFont (bool invertStatus) |
| setInvertFont
|
|
bool | getInvertFont (void) |
| getInvertFont
|
|
int | getWriteError () |
| gets the error flag status, zero no error
|
|
void | clearWriteError () |
| clears the errof flag by setting it to zero
|
|
size_t | write (const char *str) |
|
virtual size_t | write (const uint8_t *buffer, size_t size) |
|
size_t | write (const char *buffer, size_t size) |
|
virtual int | availableForWrite () |
|
size_t | print (const char[]) |
|
size_t | print (char) |
|
size_t | print (int, int=DEC) |
|
size_t | print (unsigned int, int=DEC) |
|
size_t | print (long, int=DEC) |
|
size_t | print (unsigned long, int=DEC) |
|
size_t | print (double, int=2) |
|
size_t | print (const std::string &) |
|
size_t | println (const char[]) |
|
size_t | println (char) |
|
size_t | println (int, int=DEC) |
|
size_t | println (unsigned int, int=DEC) |
|
size_t | println (long, int=DEC) |
|
size_t | println (unsigned long, int=DEC) |
|
size_t | println (double, int=2) |
|
size_t | println (void) |
|
size_t | println (const std::string &s) |
|