GPIO LED blinker using SYSFS on the Rock64 - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86) +--- Thread: GPIO LED blinker using SYSFS on the Rock64 (/showthread.php?tid=4695) |
RE: GPIO LED blinker using SYSFS on the Rock64 - tllim - 07-12-2017 (07-12-2017, 06:25 PM)MarkHaysHarris777 Wrote:(07-12-2017, 06:10 PM)tllim Wrote: Hi Marcus, Thanks :-) RE: GPIO LED blinker using SYSFS on the Rock64 - MarkHaysHarris777 - 08-23-2017 I updated my chart; while pin GPIO2_A3 does NOT work as output (it should) the pin DOES work as input ! ... this was a surprise ! RE: GPIO LED blinker using SYSFS on the Rock64 - fra87 - 12-28-2017 Hi First of all thank you for your work. Very helpful! I'd like to share a modified version of the function to calculate the pin number, with a bit of validation to be sure that the string is ok (I hope it is ok). The function returns -1 if there was any problem with the string Code: def GPIO_name2gpio(value): RE: GPIO LED blinker using SYSFS on the Rock64 - dontpostalot - 01-16-2018 I noticed the pin numbers now have an additional offset of 1000 in the latest images (kernel 4.4.103). RE: GPIO LED blinker using SYSFS on the Rock64 - Leapo - 03-25-2018 Went ahead and wrote a Rock64 GPIO library for Bash: https://github.com/Leapo/Rock64-BashGPIO Working on porting/re-implementing RPi.GPIO for Python now RE: GPIO LED blinker using SYSFS on the Rock64 - xalius - 03-26-2018 (03-25-2018, 06:04 PM)Leapo Wrote: Went ahead and wrote a Rock64 GPIO library for Bash: https://github.com/Leapo/Rock64-Utilities Nice work, can you maybe start a new thread for your RPi.GPIO effort, there are probably some people that would like to contribute... RE: GPIO LED blinker using SYSFS on the Rock64 - Leapo - 03-26-2018 (03-26-2018, 02:56 AM)xalius Wrote: Nice work, can you maybe start a new thread for your RPi.GPIO effort, there are probably some people that would like to contribute... I'll fire up a separate thread as soon as I get the first version of the Python module uploaded to github. Shouldn't be too much longer. I got basic functionality hammered-out and working last night. Check it out, R64.GPIO is already running RPi.GPIO compatible test code: RE: GPIO LED blinker using SYSFS on the Rock64 - ulysse132 - 07-03-2018 Hello, I have issue when trying the code MarkHaysHarris gave : Code: ulysse132@rock64:~$ sudo -i Could you give me a hand to make this work ? I have the same result with echo 60. I didn't try other values because I don't want to make mistakes. I use armbian 5.42 (stretch). Thanks for your help ! RE: GPIO LED blinker using SYSFS on the Rock64 - pfeerick - 07-03-2018 (07-03-2018, 11:30 AM)ulysse132 Wrote: Hello, Export numbers have changed due to kernel updates and the like. I'll double check what the offset is now and let you know. RE: GPIO LED blinker using SYSFS on the Rock64 - gaggleoxfoggy - 08-03-2018 I'd also like to know more about making this work on Armbian 5.42 stretch. My /sys/class/gpio only lists 5 items, gpiochip1000, 1032, 1064, 1096, 1510. Is this now accessing them as a group? I'm specifically wanting to use them as triggers so that a button press will trigger events in my python app. |