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

Functions

void ezLCD_set_pen_size (uint8_t size)
 
void ezLCD_set_pen_height (uint8_t height)
 

Detailed Description

This header contains functions that control the pen width(size), and height. These parameters are used when drawing shapes to the current frame.

Pen height is only used when drawing curves objects such as unfilled circles and arcs. Otherwise it is ignored. The image below illustrates the concepts of pen height and pen width(size).

pen.png
Relationship between pen width(size) and height

Function Documentation

void ezLCD_set_pen_height ( uint8_t  height)

This function is used to set the pen height; the vertical dimension of the drawing pen.

Parameters
  • height = The desired pen height.
Assumptions
  • 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_set_pen_size ( uint8_t  size)

This function is used to set the pen size or width; the horizontal dimension of the drawing pen.

Parameters
  • size = The desired pen width or size.
Assumptions
  • 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