I misconfigured GPIO module, so for now, you have to load driver first (it will be fixed soon):
then check sysfs for all available pins (depends on script.bin):
code:
- ls /sys/class/gpio_sw
Choose one, for example PA0. Set it either to input (0) or output (1). This will set it as an output:
code:
- echo "1">/sys/class/gpio_sw/PA0/cfg
If you set it as an output, you can set state of the pin with writing 1 or 0:
code:
- echo "1">/sys/class/gpio_sw/PA0/data
Otherwise, you can read it:
code:
- cat /sys/class/gpio_sw/PA0/data
Please know that all these informations are based on a driver, so please tell if it works or not.