Hello everybody.
I’m stack in a simple problem. My application required communication with I/O expander MCP23018.
I made it work except one thing. I need to read single bit and ignore all others. I need also to write a single bit and leave unchanged others. As command looks like this
i2cwrite sda,scl,CTRL_EE_W,[GPIOB,%00000011]
so, how can I change, for example 3 bit, and leave all other bits unchanged ( value of other bits unknown and might change)
I need also read a single bit and ignore value of others.
i2cread sda,scl,CTRL_EE_R,[IO_dat]
Any input welcome!
Vladimir