Page 1 of 1

GPIO write

Posted: Sun Mar 20, 2011 7:34 am
by soumajit
I am using sub_gpio_write() for setting the values of pins. But how can I set the individual pins without affecting the status of other pins using this function?

Re: GPIO write

Posted: Sun Mar 20, 2011 7:49 am
by xol
Use mask.
• mask - Bit in set parameter will take effect only if corresponding mask bit is "1". With mask=0 function will only read current GPIO output status.

Re: GPIO write

Posted: Sun Mar 20, 2011 9:01 am
by soumajit
Thank you for the reply :) :)