asagedev / node-red-contrib-LCD20x4-I2C

Driver for 20x4 LCD screen
MIT License
4 stars 5 forks source link

Node not working on LCD20x4-I2C #13

Open felice64 opened 3 years ago

felice64 commented 3 years ago

Hi There, I am posting this topic here as last resource because I have not been able to find a solution to the problem.

Still I cannot get any message on the LCD using the node-red-contrib-LCD20x4-I2C. I am under the impression that the node is not working. My os: PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian

My test flow is attached. Nodered-LCD_flow.zip

The idea to use your node to drive the LCD is very nice. I would appreciate some support to understand the issue I don't know what else to check.

Turbourpo commented 2 years ago

I did not check the attached zip-files. But I had similar issues way back - if my memory servers me right, the I2C address was hard coded to the lcddriver.py file which is located under the ./node-red/node_modules/node-red-contrib-lcd20x4-i2c/LCD20x4-I2C/ path.

Check that the I2C address is the same as in your working python script or run some kind of python test script to list the connected I2C devises. For me this setting did the trick:

# LCD Address
ADDRESS = 0x3F

This was the default setting in the installed file:

# LCD Address
ADDRESS = 0x27
tatuiot commented 4 months ago

For what I saw so far is that is developed for python 2.7 and I have running python 3.8

Turbourpo commented 4 months ago

There is a pull request for this repository to upgrade the code to python3.