Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
I would like to use a i2c port extension like the PCF 8575 to test switch position
is there a fonction wich help to translate easely from integer (read on the i2c device to binary R(0,1,0,0,1,1,0,0) for example ?
with R(0)= false, R(1)=true ?
that's could be a lot more easier than playing with the integer value in conditionnal loop
may be i'm a bit lazy, but if there is something working is already done somewhere ...
may be a C function I haven't be able to find
thank you a lot