milkv-duo / duo-buildroot-sdk

Milk-V Duo Official buildroot SDK
411 stars 174 forks source link

non existing pin via /sys/class/gpio/gpio430/ for Duo256M #135

Open krzysztofkuczek opened 2 months ago

krzysztofkuczek commented 2 months ago

HI, According to the documentation https://milkv.io/docs/duo/getting-started/duo256m, the GPIO10 should have number 430. It's not available. cannot access '/sys/class/gpio/gpio430': No such file or directory

The other thing is that the pinpong library does not support Duo256M, the https://github.com/milkv-duo/duo-buildroot-sdk/blob/develop/buildroot-2021.05/package/python-pinpong/pinpong/extension/milkvDuo.py contains pins definitions valid only for DUO.

Or am I wrong? Kris

NOVBobLee commented 4 days ago

Have you done echo 430 > /sys/class/gpio/export? This command will create gpio430 directory for you and then you can control it. See ref.