I would appreciate it if somebody tried this code having both the LCD(+ touch interface) and the AMP skins mounted on his/her board:
Code: Select all
import pyb
# starting the LCD
lcd = pyb.LCD('Y')
# defining a function to set the AMP volume
def setvolume(value):
pyb.I2C(1, pyb.I2C.MASTER).mem_write(value, 46, 0)
# calling the function
setvolume(50)
Code: Select all
Exception: HAL_I2C_Mem_Write failed with code 2
Could this be happening due to misassembling (eg bad soldering)?
Thank you guys, I'm new in this forum and I look forward to sticking around here for quite some time
