1Mbit EEPROMを便利に使うためのライブラリ
Dependents: EEPROM_Reset_Program EEPROM_Encode_Program SWAN_IZU2019_v1 Hybrid_OB2021_eeprom ... more
Revision 5:0dd9675460e6, committed 2021-05-23
- Comitter:
- Sigma884
- Date:
- Sun May 23 07:57:49 2021 +0000
- Parent:
- 4:d9de12f32978
- Commit message:
- Add changing "ptr" function to setWriteAddr
Changed in this revision
| EEPROM_lib.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EEPROM_lib.cpp Tue Feb 12 15:47:01 2019 +0000
+++ b/EEPROM_lib.cpp Sun May 23 07:57:49 2021 +0000
@@ -102,6 +102,11 @@
}
cmd[0] = ADDR_H;
cmd[1] = ADDR_L;
+
+ ptr[0] = (char)num - 1;
+ ptr[1] = (char)block;
+ ptr[2] = ADDR_H;
+ ptr[3] = ADDR_L;
}
int EEPROM_lib::chargeBuff(char DATA){