Hi and welcome to a new section in this course, this section is dedicated to a mini project in its
main project, we build these people to powered gadget that runs Micro Python to coordinate a sensor
and OLED display with, of course, Tewes activity.
And he will measure some environmental variables, show them on the screen, and then if certain conditions
are met, then it will trigger.
And if they send that email notification and you can see the full project operating right now.
And here is what that email looks like to make this work.
I have combined scripts from previous sections and in particular from Section 11 when we talked about
Wi-Fi and Section nine, where we talked about displays and Section eight where we talked about sensors.
Now, here's a catch.
I don't just have a single version of the sketch that powers this gadget that he could see here actually
have two different versions of the script.
The first one is this one right here where in a single file we hold all of the code required.
Now, the second version is taking a modular approach.
And now I've got to file.
I should hold the script.
The first file is the controller covid Modula here, and it simply runs the clock and caused unnecessary
interrupt service routine here, which then coordination orchestrates everything else that happens.
The second file, which is the modules, is we are of course, the necessary variables, external modules,
SAPHIR plus or the functions that do the various bits and pieces and make this gadget work.
So by putting this together, I wanted to show you how, first of all, you can combine multiple capabilities
that you have learned earlier in this course and create a new gadget that does something useful and
hopefully interesting as well.
But also as your micro python scripts are getting larger, how you'll be able to take a more modular
approach and break down larger scripts into multiple components, multiple files.
That is so that you can deal with the increasing complexity.
So let's begin in the next lecture.
I just want to do a quick overview of the hardware and the connections, and then we'll continue that
with a more detailed dive into the first and the second versions of the script.