How to #include extra lib (LiquidCrystal_I2C, LiquidCrystal_I2C.h)


in my Arduino libraries folder (which i had already installed some months ago (Arduino IDE 1.8.9)) I have an extra lib (LiquidCrystal_I2C, LiquidCrystal_I2C.h) for the i2c version of the LCD1602, and it works fine with this device used by my Arduino Sketches. I now would like to use this lib also via makeblock 5.

  • where to copy this lib additionally and how to #include this lib to access it also via myblock5 programs?
  • how will I know which block-functions/commands of this lib I’ll have to use in makeblock 5?
  • is there a different way (lib, method) to use the LCD1602/2004_i2c device by makeblock 5?


Hi, the LiquidCrystal has integrated cloud-Compiled server in mBlock5, you can use it directly.
If you want to add External Class Libraries, you can add Extend Designer, and change #include <LiquidCrystal.h>into #include “LiquidCrystal.h”


Ways to add the External Class Libraries


I do not want to patch the Arduino Sketch code, I want to use the blocks directly, to directly access the LCD1602_i2c or the LCD2004_i2c by makeblock-blocks.
If I wanted to patch the Arduino C++ code then I wouldn’t need the graphic makeblock-blocks at all.
BTW, to clearify:
my question is not about the standard LCD1602 with about a dozen single-wired pins, but about the i2c version driven by an internal PCF8574 chip, just having 4 pins (SDA,SCL,Vcc,GND) !²C_LCD1602


(cannot be deleted)


so which is the detailed description to use the i2c displays
i2c_LCD1602 and i2c_LCD2004
directly by makeblock 5, by which built-in programming blocks?


no solution for i2c display blocks to work out of the box??


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.