Software, meet hardware
My friend Matt recently got a microcontroller kit as a present. It’s pretty geek-tastic – you wire up circuits on a little breadboard, write code on your PC, download the compiled code to the microcontroller, and run. At which point, depending on your skill and ambition, your LED blinks, your piezo buzzes, or your robot limbs and sensors do their thing. And your cat runs into the other room.
All very cool, but the language – a BASIC dialect called PBASIC – overwhelmed my delicate sensibilities. For example, take this bit of code (found on the web)…