wirog80 Member Licensed User Sep 23, 2017 #1 hi all, i'm using WiringPi to read GPIO pins for OrangePi board. i'm using Shell to get state of pins. i have 2 option to do it, 1.calling Shell using Timer every 200 ms, like this B4X: sh1.Initialize("sh1", "gpio", Array As String("read", "3" )) or 2.calling once Shell to run C script which loop reading every 200 ms too. B4X: shl.Initialize("shl", "./C_readGPIO", Array As String()) which is better way? thanks..
hi all, i'm using WiringPi to read GPIO pins for OrangePi board. i'm using Shell to get state of pins. i have 2 option to do it, 1.calling Shell using Timer every 200 ms, like this B4X: sh1.Initialize("sh1", "gpio", Array As String("read", "3" )) or 2.calling once Shell to run C script which loop reading every 200 ms too. B4X: shl.Initialize("shl", "./C_readGPIO", Array As String()) which is better way? thanks..
I inakigarm Well-Known Member Licensed User Longtime User Sep 23, 2017 #2 Any reason for not using https://www.b4x.com/android/forum/threads/iot-jpi4j-raspberry-pi-gpio-controller.37493/? Upvote 0
Any reason for not using https://www.b4x.com/android/forum/threads/iot-jpi4j-raspberry-pi-gpio-controller.37493/?
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2017 #4 Are you using the latest version? It should support OrangePi. Upvote 0
wirog80 Member Licensed User Sep 24, 2017 #5 last time, i do this https://www.b4x.com/android/forum/threads/pi4j-add-orange-pi.80807/#post-528724 any update? i haven't try it again.. Upvote 0
last time, i do this https://www.b4x.com/android/forum/threads/pi4j-add-orange-pi.80807/#post-528724 any update? i haven't try it again..
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2017 #6 I haven't tested it on OrangePi. To answer your original question, I would start with the first option. Note that you can use Shell.RunSynchronous to read the value. Upvote 0
I haven't tested it on OrangePi. To answer your original question, I would start with the first option. Note that you can use Shell.RunSynchronous to read the value.