i have a GE864-GPS module and i am attmeping to program a MAC9867 audio codec. It works using the following AT commands however it seems to fail when i try to program via python.
Here is the AT commands that work.
AT#I2CWR=X,Y,30,4,19 > 00101000A40A330000330C0C09092424400060<ctrlZ>
I tried to replicate this in python using the IIC module however it fails when it tries to write. I suspect it has something to do with the slave write and read addresses. Any help would be greatly apprecated.
I believe the problem could be in how the register address has to be write..
In the py module readwrite the addr wrote via the IIC.new function is automatically shifted to left by 1 and theLSB bit isset to 0 or 1 to perform a read or a write.
So try to change the code as below:
I2C_WR = 0x18 # MAX9867 address shifted right by 1
Hit enter to search or ESC to close
Knowledge Base & Download Zone