3. Using Peripherals
3.5. Graphic LCD Display via SPI
The LCD Display device used is EA-DOGS102-S. It interacts with the Nano Module via the SPI interface.
The backlight for the Display can be enabled/disabled using Jumper J7.
An API is available in the Development Pack to facilitate basic drawing operations on the LCD Display. It
currently supports only black-and-white mode of operation. The supported commands are described in
the following subsections of this chapter. Important: input parameter type byte is defined in TWN4 Nano
API as unsigned char.
Include file:
lcd_spi_ea.c
3.5.1. SPI Display Init
This method initializes the SPI interface to the LCD Display and specifies its operating parameters.
void
SPIDisplayInit(void);
Parameters:
Return:
3.5.2. SPI Display Clear
This method fills (clears) the entire LCD Display, depending on argument given. This argument can be
used as the background color argument for all other functions.
void SPIDisplayClear(bool
Parameters:
bool
bg_color
Return:
None.
None.
bg_color);
Background Color. Specifies color to fill Display with:
0=full clear, 1=full black.
None.
Page 8 of 13
Need help?
Do you have a question about the TWN4 MultiTech Nano and is the answer not in the manual?
Questions and answers