Arduino library for MikroElektronika LCD mini click board

Following my previous work to develop an Arduino code library for using an LCD display with the MCP23S17 port expander, I wrote a slightly modified version that works with the LCD mini click board from MikroElektronika.

This new library can be downloaded from:

While most of the library functions are described in the previous blog post, there are some changes that were necessary to match the hardware onboard the LCD mini click board.

In the new library, the LCD mini object is declared as:

MCP23S17_LCD(uint8_t rst, uint8_t cs, uint8_t cs2, uint8_t pwmpin);


    rst is the /reset pin of the MCP23S17 port expander
    cs is the /CS pin for MCP23S17
    cs2 is the /CS pin for MCP4161 digital potentiometer
    pwmpin is used to control backlight intensity

When using one Arduino Uno with the Arduino Uno click shield, the settings are as follows:

    MIKROE_LCDmini lcd(A3, 10, A0, 6); when using mikroBUS socket #1
    MIKROE_LCDmini lcd(A2, 9, A1, 5); when using mikroBUS socket #2

Obviously, don’t forget to move the (hardware) SMD jumper in the 5V position if you wish to use the LCD mini click board with 5V Arduino boards,

Besides this, the LCD is now initialized as lcd.begin();. No parameters are necessary, as the LCD number of rows and columns is set inside the library.

As the LCD mini click uses a digital potentiometer to set the LCD contrast, a dedicated lcd.setContrast(uint8_t contrast); function was implemented. In my example code I used contrast = 30, but you can play around this value until you get the desires result.

When started, the backlight is set to its maximum intensity. You can further control the backlight using the lcd.setBacklight(uint16_t backlight); Possible values range from 0 to 1023.

A typical Arduino code will look like:
#include <MIKROE_LCDmini.h>

MIKROE_LCDmini lcd(A3, 10, A0, 6);

void setup() {

void loop() {

All other LCD functions are the same as described in the Arduino LCD library. All code examples were modified to reflect the changes in the library.


Air quality,2,Arduino code library,2,Arduino projects,23,Buggy,1,Casual stuff,1,ESP8266,2,MikroElektronika,3,PIC projects,7,Review,26,Robots,1,Tutorial,20,
Electronza: Arduino library for MikroElektronika LCD mini click board
Arduino library for MikroElektronika LCD mini click board
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content