Library Reference

Thanasis Georgiou edited this page Dec 22, 2015 · 1 revision

Control Functions

  • void $INSTANCE_NAME_init()
    Parameters: None
    Returns: Nothing
    Description: Initializes the display. In detail:
    • Initializes the hardware SPI port and enables interrupts.
    • Resets the LCD to a known state (RST pin pulsed).
    • Sets the LCD Bias level, selects the ADC and the SHL.
    • Turns on the power circuits of the controller.
    • Sets the operating voltage and the contrast.
    • Empty the memory buffer.
    • Turns on the display.
  • void $INSTANCE_NAME_reset()
    Parameters: None
    Returns: Nothing
    Description: Resets the display (pulse RST pin).
  • int8 $INSTANCE_NAME_is_refreshing()
    Parameters: None
    Returns: 1 if the display is currently refreshing, 0 if not.
    Description: Checks if the display is currently refreshing.
  • void $INSTANCE_NAME_refresh() Parameters: None
    Returns: Nothing
    Description: Sets the "refresh" flag so the display will start getting refreshed in the main loop.
  • void $INSTANCE_NAME_refresh_loop()
    Parameters: None Returns: Nothing
    Description: Refreshes the display if required. This should be placed inside the main loop or else the display will do nothing.
  • void $INSTANCE_NAME_set_contrast(uint8_t value)
    Parameters:
    • uint8_t value: The new contrast value (0-63). Values larger than 63 are corrected to 63.
      Returns: Nothing.
      Description: Sets the display contrast. Something around 25-30 should be a good value if you are guessing.
  • uint8_t∗ $INSTANCE_NAME_get_buffer()
    Parameters: None Returns: The display's buffer. Description: Returns the display's buffer. Useful if you plan on copying large chunks of memory or printing repeating patterns.

Drawing Functions

This section remains to be filled. Until then, check the included PDF "datasheet" or the code itself.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.