Hi
It working in rpi3 when i run "echo 1 > /dev/sys-led" in the command line.
following code it can't working but ProcessCompleted is success when i run it in my b4j no-ui-app but jshell
It working in rpi3 when i run "echo 1 > /dev/sys-led" in the command line.
following code it can't working but ProcessCompleted is success when i run it in my b4j no-ui-app but jshell
B4X:
Dim lst As List
lst.Initialize2(Array As String($"'${jylab.IIF(sysledst,1,0)}'"$,">","/dev/sys-led"))
Dim shl As Shell
shl.Initialize("gpio","echo",lst)
shl.Run(-1)
sysledst = Not(sysledst)