gerardwr wrote:Good luck, let us know how it goes, keep posting your working code, that helps others.
The code is now like this:
-- get content of register 0xAA of device 0x77
write_reg(0x20, 0x00, 0x00) -- set bank A to output
for i=0,255 do
print("Setting bank A to value " .. i)
write_reg(0x20, 0x12, i)
And it works beautifly!
Seems like my kids are going to miss me tomorrow
I read somewhere about I2C IO-expanders with some digital AND analog IO's. Have some experience with them? Could be a solution for all the people that cry over not having a connection to the ADC TOUT pin on their ESP board.