Summary
In this chapter, we worked with Python with two different libraries: mraa
and wiring-x86
. We connected LEDs and resistors to a breadboard and we wrote code to turn on from 0 to 9 LEDs. We improved our Python code to take advantage of Python's object-oriented features and we prepared the code to make it easy to build an API that will allow us to print numbers with LEDs with a REST API.
Now that we finished our first wirings and we started controlling the board with Python, we can start working with additional outputs and combine them with a REST API, which is the topic of the next chapter.