Error loading module 'liquidcrystal' from file 'liquidcrystal.lua': not enough memory

Viewed 48

I'm trying to use a LCD display 16x2 (based on Hitachi HD44780) with 4-bit I²C interface (based on PCF8574) on an ESP8266 NodeMCU V.3 (ESP-12E) and when I load the liquidcrystal.lua library (by Matsievskiy Sergey on GitHub) I get the following error:

Error loading module 'liquidcrystal' from file 'liquidcrystal.lua': not enough memory

Looking at the heap I have 21208 remaining bytes.

Here is the code in init.lua (only two lines):

backend_meta = require("lc-i2c4bit")
lc_meta = require("liquidcrystal")

I uploaded the lc-i2c4bit.lua and liquidcrystal.lua files to the root of the MCU.

How can I solve this problem?

0 Answers
Related