Page 1 of 1

GPIO Write

Posted: Mon May 02, 2011 7:15 am
by Student
Hello,

I would like to send, e.g. the hex "E201" about the GPIO Header Pins: 2,4,6,8,10,12,14 and 16 (direct GPIOs: 9,11,13,15,25,27,29,31).

How must I program in C using the library from SUB-20?

Could you help me please?

Re: GPIO Write

Posted: Mon May 02, 2011 6:35 pm
by xol
"E201" has 16 bits (i.e 16 GPIO) and you mention only 8.
Anyway you should use
sub_gpio_config : http://www.xdimax.com/sub20/doc/HTML/su ... config.htm
and
sub_gpio_write: http://www.xdimax.com/sub20/doc/HTML/sub_gpio_write.htm