+ 5
If you don't mind using a board that's designed to make it easy to handle basic signal lines (or more, if you want to buy modules vs. build):
https://create.arduino.cc/projecthub
Arduino's language is a subset of C/C++.
If you're using your own processors, you could still learn the basic ideas behind programmable control by looking at how the projects are made.