MultiLCD Library for Arduino

Written by Stanley Huang, distributed under GPL.

MultiLCD is an Arduino library designed for displaying characters and bitmaps on different models of Arduino LCD display shields/modules with easy-to-use and unified API. It is developed with performance in the first priority. For supporting a wide range of devices and providing additional rendering APIs, the new implementation inherits a modified version of UTFT library. That means most APIs of UTFT are accessible via MultiLCD library.

The library embeds 2 types of font for ASCII characters (5×7, 8×16) and 4 types of fonts for digits (8×8, 8×16, 16×16, 16×24). It is extremely simple for display texts and numbers on desired position on a LCD screen with the library, while very little change in code is needed to switch from one LCD module to another. For more sophisticated drawing and rendering features, UTFT APIs can be used.

MultiLCD supports several color TFT LCD display shields/modules including:

MultiLCD has dumped support for monochrome LCD and OLED display since a while ago since starting to inherit UTFT library APIs. The support has been moved to MicroLCD library which shares the same APIs except for the UTFT APIs. It is also more optimized for Arduino with smaller program memory (Arduino Micro, Arduino Nano, Arduino Mini etc.). MicroLCD supports following monochrome display shields/modules:


You need to include library header at the beginning of the sketch

#include <MultiLCD.h>

If you are using MicroLCD library, following is needed.

#include <MicroLCD.h>

And use one of following declarations before your code:

Model Code
LCD_SSD1289 lcd; SSD1289 based TFT LCD
LCD_ILI9325D lcd; ILI9325D based TFT LCD
LCD_ILI9341 lcd; ILI9341 based TFT LCD
LCD_PCD8544 lcd; PCD8544 based LCD
LCD_SH1106 lcd; SH1106 based OLED
LCD_SSD1306 lcd; SSD1306 based OLED

The library class inherits the Print class of Arduino, so that you can display texts on LCD with standard Arduino functions like this:

lcd.print("Hello, World!";)
lcd.print(foo, DEC);
lcd.print(bar, HEX);
lcd.print(1.23)         // gives "1.23" 
lcd.print(1.23456, 2);  // gives "1.23" 

Besides, it provides unified APIs for initializing and controlling the LCD, as well as some convenient operations.

void begin(); /* initializing */
void clear(); /* clear screen */
void setCursor(byte column, byte line); /* set current cursor, column is in pixel */
void setFontSize(FONT_SIZE size); /* set font size */
void setColor(byte r, byte g, byte b); /* set text color, not available in MicroLCD */
void setBackColor(byte r, byte g, byte b); /* set background color, not available in MicroLCD */
void printInt(uint16_t value, int8_t padding = -1); /* display a integer number */
void printLong(uint32_t value, int8_t padding = -1); /* display a long number */
void draw(const PROGMEM byte* buffer, byte width, byte height); /* draw monochrome bitmap */


#include <Wire.h>
#include <MicroLCD.h>

LCD_SSD1306 lcd; /* for SSD1306 OLED module */

static const PROGMEM uint8_t smile[48 * 48 / 8] = {

void setup()

void loop()
    lcd.draw(smile, 48, 48);

    lcd.setCursor(0, 0);
    lcd.print("Hello, world!");

    lcd.setCursor(0, 1);
    lcd.print("Hello, world!");

    lcd.setCursor(0, 3);

    lcd.setCursor(64, 3);

    lcd.setCursor(0, 4);

    lcd.setCursor(0, 6);



Drawing bitmap on SSD1306 OLED

The following shows the real example of using MultiLCD library on a SSD1289 based 3.2″ TFT LCD display. Freematics TFT LCD touch shield

Learn more