According to https://wiki.odroid.com/odroid-c4/hardw ... connectors, their GPIO numbers should be 22,23,24 respectively, which is also indicated by the output of
gpio readall. However I have run into some issues using these pins:
GPIOH_6: I use this in a custom kernel module, and when I print the gpio number that I get there it says 433, not 23.
GPIOH_7: I used this to set up a power button (https://wiki.odroid.com/odroid-c4/appli ... key_wakeup), and using gpio number 24 in the boot.ini gave startup errors, but using gpio number 434 in the boot.ini works properly
GPIOH_5: I am using this to drive an external LED. I am testing it with these commands:
Code: Select all
$gpio export 22 out # This fails gpio: Unable to open GPIO direction interface for pin 22: No such file or directory $ gpio export 432 out # This works and sets the direction correctly $ gpio -g write 22 1 #This works (turns led on/off) $ gpio -g write 432 1 #This fails Segmentation fault (core dumped)