PowerShell 7 and the Raspberry Pi
This is one of the chapters I’ve looked forward to writing the most. I’ve got a house full of Raspberry Pis (and Arduinos, micro:bits, and ESP32s…). I use them to teach coding to school kids (and adults), as well as to run adblockers, media centers, wildlife cameras, and horticultural systems. I’ve got one with buttons that randomly selects episodes of my favorite radio shows and plays them (called the Shendomizer). Mostly, I program them with Python, but PowerShell is also an option. We can even install a stripped-down version of Windows 10 on them, but we won’t cover that in this book. Instead, we’ll look at how to install PowerShell 7 and Visual Studio (VS) Code, how to connect remotely to a headless Pi over Wi-Fi using SSH with both PowerShell and VS Code, the default module for working with PowerShell on the Raspberry Pi, and finish up by creating a script to accomplish the first steps in physical computing...