Sunday, December 10, 2017

28 November 2017- Day 25- EEPROM and C++ classes

Day 25: Lab began with learning about another way to store data collection but on the arduino board itself.  EEPROM stands for Electrically Erasable Programmable Read-Only Memory. 
The neat thing about this form is that it can remember things even when there is no power.  this kind of memory can store generated due inside of a sketch on a more permanent basis.  Certain situations such as a cycle counter where a user is not allowed to reset the count could be useful for this type of memory.  It is also possible to add more EEPROM storage external with the addition of I2C EEPROM chips that can greatly increase the Arduino storage.  For the lecture portion of class we began discussion of C++ classes.  These classes are separated into two parts: the declaration and the implementation.  The body of the class declaration has declaration statements for the data members and function prototypes for the function members. Class implementation consists of all the member defined functions.  We also discuss constructor functions.  These functions are special member functions that are automatically called when an object in that classed is declared.   Another topic we went over in class what the class operators.  The ability for the user to overload operators in C++ is a powerful feature that can be as easily as predefined data type.  

No comments:

Post a Comment