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


#1

hello,
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?

#2

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”


#3

Ways to add the External Class Libraries


#4

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) !
http://wiki.sunfounder.cc/index.php?title=I²C_LCD1602
https://robojax.com/learn/arduino/?vid=robojax-LCD2004-I2C


#5

That part I actually do not understand - did you ever manage to utilize the i2c-devices i2c_LCD1602 and i2c_LCD2004 via the transcode thing?
as stated, I just want to use the i2c devices from using blocks, out of the box (I am no programmer, just a makeblock user!)


#6

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?