Buy a little microcontroller kit. It gives you all sorts of inputs and outputs to play with, and the tiny brain is honestly much easier to understand and reason about than the monstrosity in your laptop.