Running PowerShell on Raspberry Pi OS
The beauty of the Raspberry Pi is just how many ways you can connect it to the outside world, from joystick controllers to cameras to sensors to motors to… ooh… everything. In this chapter, we’re going to look at using GPIO pins to make an LED blink, but first, we need to learn how we can interact with the GPIO. There are two options, neither of them particularly well supported. The better option is to install a new OS: Windows 10 IoT Core. That would take a chapter or two in itself, and it doesn’t really address the topic of running PowerShell on Raspberry Pi OS. The other way is to use the PowerShell IoT module. This hasn’t been updated since about 2020 and doesn’t appear to work with later versions of the Pi 4B, but it works reasonably well on older ones, and we can live in hope that it will be updated at some point. I’m going to take advantage of a Pi 3B I’ve got in my drawer.