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

Functions

void ezLCD_set_display_frame (uint8_t frame)
 
void ezLCD_set_draw_frame (uint8_t frame)
 

Detailed Description

This header contains functions which are used to set the drawing and display frames. The ezLCD+103 contains 20 individual frames which may be drawn to or displayed. So the user can draw different images to different frames and then choose which frame to render on the screen. This allows for seamless image rendering with virtually zero lag. This is advantageous when telling the ezLCD to render vector images (such as true type fonts) which may take some time due to the computations involved in rendering these images. The ezLCD+103 defaults to frame 0 upon power-up.

The diagram below illustrates how this works (simplified down to just 3 frames for simplicity).

frames.png
Block diagram of the framing system

Function Documentation

void ezLCD_set_display_frame ( uint8_t  frame)

This function is used to select the display frame.

Parameters
  • frame = The frame that is to be displayed on the screen in the set of [0,19].
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_draw_frame ( uint8_t  frame)

This function is used to select the drawing frame.

Parameters
  • frame = The frame that is to be drawn on in the set of[0,19].
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