![]() |
| (fritzing diagram for the speaker interrupt lab) |
Saturday, December 9, 2017
09 November 2017- Day 21- Dynamic Data Structures
Day 21: Class began with the lab using more interrupts with timer this time. This time we used a speaker that would pay a certain note scale that would change by an octave when a button was pressed at any point in the progression. The volatile variables change inside the interrupt. Also, the timer interrupt function is set to milliseconds.
The class lecture was on dynamic data structures. Data structures can store data and allocate memory, when required, depending on the size of the data file. also, they can shrink and grow during the execution of a program. There are certain pre defined data structures in C such as, int, boolean, and character. These are known as primitive data structures. There's also user defined data structures such as arrays, lists, and files. Lists have both linear and non-linear forms. There are certain advantages and disadvantages to each type.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment