RobH wrote:
> I have a python script to run some leds, and I'm having a problem with it!
> When I ssh into my pi zero, then sudo python3 python script.py, it
> doesn't run, no leds are lit.
> But if I open a terminal in the pi desktop and run the same command
> line, it works and the leds light up.
>
> Anyone know why this happens.
>
Because you have written some very clever code that differentiates
between a local login and an ssh login! :-) :-)
More seriously I can't think of any obvious answer, we need more
information, or at least *you* need more information. Put some print
statements around the code that turns the LEDs and see if it's reached
in bith cases.
--
Chris Green
ยท
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|