So, I've just come out of the other side of four days trying to get an LED flashing on my new Pi5.
Four days ago I booted up my PI headless and connected to it via a remote session from VS Code and put in the sample gpiozero code, didn't work, tried gpiod (as per Tom's hardware page), didn't work.
It's taken me this long to realise that in order to be able to SSH remote into my PI from VS Code and have gpio work in Python I need PIGPIOD to be running as it's considered remote access of the GPIO PINS (which I had enabled remote access for). But of course PIGPIOD won't work, so I now realise can't do that.
I've just logged onto my PI 5 via VNC and installed VS Code and the python samples work straight out the box![Very Happy :D]()
Still, I learnt a lot about the internals of these libraries and what they are based on
I would still like to do this from VS Code running on my laptop with a remote SSH Session in VS Code, but I can wait...
Four days ago I booted up my PI headless and connected to it via a remote session from VS Code and put in the sample gpiozero code, didn't work, tried gpiod (as per Tom's hardware page), didn't work.
It's taken me this long to realise that in order to be able to SSH remote into my PI from VS Code and have gpio work in Python I need PIGPIOD to be running as it's considered remote access of the GPIO PINS (which I had enabled remote access for). But of course PIGPIOD won't work, so I now realise can't do that.
I've just logged onto my PI 5 via VNC and installed VS Code and the python samples work straight out the box

Still, I learnt a lot about the internals of these libraries and what they are based on
I would still like to do this from VS Code running on my laptop with a remote SSH Session in VS Code, but I can wait...
Statistics: Posted by pejw7 — Tue Jan 09, 2024 8:26 pm