Micropython ESP8266 boards and Grove LCD JHD1802 (While on Blue)

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
tieukhachngao75
Posts: 2
Joined: Tue Jul 14, 2020 2:14 pm

Micropython ESP8266 boards and Grove LCD JHD1802 (While on Blue)

Post by tieukhachngao75 » Tue Jul 14, 2020 2:35 pm

Hello,

I try connect Grove LCD JHD1802 with ESP8266 and use lib : pyb_i2c_grove_rgb_lcd.py. I had change something from pyb to machine but it not posible on Esp8266. May be pyb_i2c_grove_rgb_lcd.py only support RGB Backlight. Please help advise how to control it because my devices not RGB Backlight. Many thanks

User avatar
jimmo
Posts: 2232
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Micropython ESP8266 boards and Grove LCD JHD1802 (While on Blue)

Post by jimmo » Thu Jul 16, 2020 3:46 am

The first line of pyb_i2c_grove_rgb_lcd.py says:

Code: Select all

Implements a SeeedStudio Grove RGB LCD JHD1313M1 HD44780 compatible character LCD connected on I2C.
Is that compatible with a JHD1802 ?

tieukhachngao75
Posts: 2
Joined: Tue Jul 14, 2020 2:14 pm

Re: Micropython ESP8266 boards and Grove LCD JHD1802 (While on Blue)

Post by tieukhachngao75 » Thu Jul 16, 2020 7:10 am

JHD1313M1 is Grove LCD RGB Backlight, im not sure that compatible with a JHD1802 . I hope this topic will many solutions.
I try change some parameter and show error

Code: Select all

>>> i2c = I2C(scl=Pin(5), sda=Pin(4), freq=400000)                              
>>> lcd = I2cLcd(i2c, DEFAULT_LCD_I2C_ADDR, 2, 16, DEFAULT_RGB_I2C_ADDR)        
Traceback (most recent call last):                                              
  File "<stdin>", line 1, in <module>                                           
  File "pyb_i2c_grove_rgb_lcd.py", line 20, in __init__                         
  File "pyb_i2c_grove_rgb_lcd.py", line 75, in hal_write_command                
TypeError: object with buffer protocol required  

Post Reply