This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
component:eeprom [2015/05/04 21:57] sulljason Typo. |
component:eeprom [2017/05/25 02:01] (current) alexbuzzbee Clarify note on `getData()` |
||
---|---|---|---|
Line 14: | Line 14: | ||
- `setLabel(data:string)` | - `setLabel(data:string)` | ||
Set the label of the EEPROM. | Set the label of the EEPROM. | ||
- | - `getSize():string` | + | - `getSize():number` |
Gets the maximum storage capacity of the EEPROM. | Gets the maximum storage capacity of the EEPROM. | ||
+ | - `getDataSize():number` | ||
+ | Gets the maximum data storage capacity of the EEPROM. | ||
- `getData():string` | - `getData():string` | ||
- | Gets currently stored byte-array (component address of main boot device). | + | Gets currently stored byte-array (usually the component address of the main boot device). |
- `setData(data:string)` | - `setData(data:string)` | ||
Overwrites currently stored byte-array with specified string. | Overwrites currently stored byte-array with specified string. |