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
or
2.calling once Shell to run C script which loop reading every 200 ms too.
which is better way?
thanks..
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" ))
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..