ezLCD+103 Driver  0.1
Driver code for the ezLCD+103
 All Files Functions Typedefs Enumerations Groups Pages
Functions
Fill

Functions

void ezLCD_clear (void)
 
void ezLCD_fill (void)
 
void ezLCD_fill_bound (uint8_t red, uint8_t green, uint8_t blue)
 

Detailed Description

This header contains functions which are used to fill a defined area with a particular color.

Function Documentation

void ezLCD_clear ( void  )

This function is used to clear the entire screen and fill it with the current color.

Assumptions
  • The user has set the current color.
  • The user has initialized the MCU's SPI interface with the EZLCD_INIT_SPI() macro.
  • The user has set the MCU's SPI pins to inputs and outputs appropriately.

    • SS_BAR = OUTPUT
    • SCK = OUTPUT
    • MOSI = OUTPUT
    • MISO = INPUT
void ezLCD_fill ( void  )

This function is used to fill the area surrounding the current position with the current color. It fills every pixel surrounding the current position which shares the same color. It stops when encountering a pixel of a different color. This is similar to the paint bucket tool in Microsoft Paint or other image editing programs.

fill.png
Result of the ezLCD_clear() function
Assumptions
  • The user has set the current color.
  • The user has initialized the MCU's SPI interface with the EZLCD_INIT_SPI() macro.
  • The user has set the MCU's SPI pins to inputs and outputs appropriately.

    • SS_BAR = OUTPUT
    • SCK = OUTPUT
    • MOSI = OUTPUT
    • MISO = INPUT
void ezLCD_fill_bound ( uint8_t  red,
uint8_t  green,
uint8_t  blue 
)

This function is used to fill the area surrounding the current position with the current color. It fills every pixel surrounding the current position until it hits pixels of the specified RGB value.

fill_bound.png
Result of the ezLCD_clear() function
Parameters
  • red = Red color component [0,255]
  • green = Green color component [0,255]
  • blue = Blue color component [0,255]
Assumptions
  • The user has set the current color.
  • The user has initialized the MCU's SPI interface with the EZLCD_INIT_SPI() macro.
  • The user has set the MCU's SPI pins to inputs and outputs appropriately.

    • SS_BAR = OUTPUT
    • SCK = OUTPUT
    • MOSI = OUTPUT
    • MISO = INPUT