To perform the exercises in this chapter, you will need the following:
- Raspberry Pi 4 Model B
- Raspbian OS Buster (with desktop and recommended software)
- A minimum of Python version 3.5
These requirements are what the code examples in this book are based on. It's reasonable to expect that the code examples should work without modification on a Raspberry Pi 3 Model B or a different version of Raspbian OS as long as your Python version is 3.5 or higher.
You will find this chapter's source code in the chapter03 folder in the GitHub repository available here: https://github.com/PacktPublishing/Practical-Python-Programming-for-IoT.
You will need to execute the following commands in a Terminal to set up a virtual environment and install Python libraries required for the code in this chapter:
$ cd chapter03 # Change into this chapter's folder
$ python3 -m venv venv # Create Python Virtual Environment
$ source venv/bin...