We are moving on to Standard 6 which is about levels of abstraction. To understand what is meant by that, we're starting with a secret message in binary code
- Binary code as a text file
In this video, Mr. Weinberg introduces the idea of abstraction and teaches you to use Python to decrypt this binary code.
- YouTube Video 20:39
Link to starter code in Replit
Discussion forum on Schoology
Watch this short video intro to our case study for today. It shows three different microcontroller boards running three different programs that achieve the same overall goal.
- YouTube Video 1:42
Make a copy of this Google Document to fill out with your group members as you look into the video and explore the code.
Some microcomputers we used to build and program a state machine. Here for "Three Boards, Three Flavors".
Based on what you did last time analyzing the code of a microcontroller board and accelerometer, this video introduces how the concept of a state machine makes this code more modular and easier to debug. The idea is to refactor the code that deals with inputs, outputs, and the logic into separate functions. This abstraction makes it easier to build more complex programs than you might otherwise be able to program.
- YouTube Video (7:35)
Binary code or here at github code.txt