Read input binairy value with GPIO_Read
Posted: Wed Oct 27, 2010 5:16 pm
How to read a specific input with GPIO_Read(). It returns a HEX value, don't know how to get the binairy value, for example input14.
Thanks
Thanks
Discussions related to XDIMAX and CoolAutomation products
http://xdimax.net/forum/
Code: Select all
result = GPIO_read(...);
input14 = (result >> 14) & 0x01;