LCD Mini Click Board
LCD Mini Click Board
The LCD Mini Click Board™ displays 2x16 monochrome characters on an LMB162XFW LCD display. It features the MCP23S17 port expander and the MCP4161 digital potentiometer, both from Microchip.
The LCD mini Click Board™ is designed to run on either a 3.3V or 5V power supply. It communicates with the target microcontroller over the SPI interface and the following pins on the MikroBUSline: PWM, INT, RST, AN.
Software Support
The demo shows how to use the SPI LCD library to communicate with the LCD (with HD44780 compliant controllers) in 4-bit mode via the SPI interface. It also uses the PWM for the backlight and the on board digital potentiometer, for controlling display contrast, which can be accessed through SPI. The demo iterates through all the values for the backlight and the contrast intensity.
CODE SNIPPET
The main function of the demo.
01 void main() 02 { 03 system_init(); 04 05 SPI_Lcd_Out(1, 6, "mikroE"); 06 SPI_Lcd_Out(2, 2, "LCD mini click"); 07 08 set_bcklight(0xFF); 09 set_contrast(0xDF); 10 11 Delay_ms(5000); 12 13 while (1) 14 { 15 set_bcklight(value); 16 set_contrast(value); 17 18 value++; 19 delay_ms(40); 20 } 21 }
LCD Mini Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.