-
Notifications
You must be signed in to change notification settings - Fork 0
EEPROM
Tiogaplanet edited this page Jul 15, 2026
·
4 revisions
MiP has a built-in electrically erasable programmable read-only memory (EEPROM) which can be read from or written to. The EEPROM provides up to 16 bytes of accessible memory. MiP's internal memory addresses are 0x20-0x2F. To implement these functions, only an offset need be provided as in 0x00-0x0F.
void setUserData(uint8_t addressOffset, uint8_t userData)
Stores one byte of user data to the offset specified. Valid offsets are 0x00-0x0F.
- addressOffset is the address offset at which to write the user's data.
- userData is the one byte of data to be written to EEPROM.
Nothing
Serial1.print(F(" Original password: "));
Serial1.printf("0x%02X\n\r", secretPassword);
// Power-off the MiP, comment out this line, recompile and load to the MPU: D1 mini to see EEPROM
// data preserved across power cycles.
mip.setUserData(eepromAddressOffset, secretPassword);uint8_t getUserData(uint8_t addressOffset)
Reads one byte of user data from the address offset specified. Valid addresses are 0x00-0x0F.
- addressOffset is the address at which to read stored data.
- The contents of the EEPROM read from the given address offset.
Serial1.print(F(" Recovered password: "));
Serial1.printf("0x%02X\n\r", mip.getUserData(eepromAddressOffset));🔗 Quick Links: Main Repository • Report an Issue • Wiki Home
An open-source API for the WowWee MiP Robot. Licensed under Apache-2.0.
- MiP
- MiPChestLED
- MiPClapSettings
- MiPDebug
- MiPHardwareInfo
- MiPHeadLEDs
- MiPIRDongleCode
- MiPSoftwareVersion
- MiPStatus
- MiP_Battery
- MiP_ChestLED
- MiP_Clap
- MiP_EEPROM
- MiP_Gesture
- MiP_HeadLEDs
- MiP_Infrared
- MiP_Mode
- MiP_Motion
- MiP_Odometer
- MiP_Position
- MiP_Radar
- MiP_Serial
- MiP_Shake
- MiP_Sound
- MiP_Version
- MiP_Weight
- MiP_WiFi