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
Read input binairy value with GPIO_Read
Moderator: serg
Re: Read input binairy value with GPIO_Read
To get input 14:
Code: Select all
result = GPIO_read(...);
input14 = (result >> 14) & 0x01;