GPIO Write

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
Student
Posts: 4
Joined: Thu Mar 10, 2011 12:26 pm

GPIO Write

Post 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?

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: GPIO Write

Post 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

Post Reply