As stated in my first post, i was fiddling with the LiquidCrystal code on arduino to intercept what was sent on the I2C bus.
With those values, using bytearray, and with this code :
Code: Select all
from machine import Pin, I2C
from time import sleep_ms, sleep_us
i2c = I2C(scl=Pin(5), sda=Pin(4), freq=100000)
values=[0,52,48,52,48,52,48,36,32,36,32,132,128,4,0,196,192,4,0,20,16,4,0,100,96,8,8,140,136,12,8,77,73,29,25]
for value in values:
sleep_ms(5)
buf=bytearray(1)
buf[0]=value
i2c.writeto(0x27, buf)
Will now try to implement bytearray in pyb_i2c_lcd.py