Package ilcd

Class EEPROM

extends Object

The DPC3090 iLCD controllerJoC offers an on-chip EEPROM with a size of 4016 bytes for user data. Only the first 9 values are used by the iLCD controllerJoC itself, however these values can be freely written to. Any other location may be used for the controlling application to store and retrieve its private data which is kept, even after a power loss.

The 9 special values affect the default startup values for the LCD

Location Contents Range of Values Reference
0 LCD Contrast 0 ... 255 Control.setLCDContrast(int)
1 LCD Backlight Intensity 0 ... 15 Control.setBacklightIntensity(int)
2 LCD Backlight Mode 0 ... 2 Control.setBacklightMode(int)
3 LCD Gamma Value 0 ... 255 Control.setLCDGammaValue(int)

and the (optional) PCAP touch screen

Location Contents Range of Values Reference
4 PCAP Number of Fingers 1 ... 5 Touch.setNumberOfTouchFingers(int)
5 PCAP Threshold 0 ... 255 iLCD Manager XEJoC Manager
6 PCAP Gain 0 ... 255 iLCD Manager XEJoC Manager
7 PCAP Offset 0 ... 255 iLCD Manager XEJoC Manager
8 PCAP Checksum 0 ... 255 iLCD Manager XEJoC Manager

Although any value can be written to any location, the iLCD controllerJoC will automatically restrict values to the corresponding range when retrieving data from the LCD (first 4) values of the EEPROM.

It is recommended to modify the PCAP values in the "Properties" window found on iLCD Manager XEJoC Manager's "Device" page, the checksum is then automatically calculated and written. If the checksum is not valid, factory default values are loaded at startup and written to EEPROM. To set the factory defaults manually, refer to EEPROM.setPCAPConfigurationToFactoryDefault(). It is also possible to set the PCAP values with the EEPROM.write(int, int) method. Therefore the PCAP Checksum is calculated with: Checksum = (byte) (NumberOfFingers + Threshold + Gain + Offset). All values have to be unsigned byte.

The 9 values mentioned above are restored from the EEPROM and the corresponding internal methods (e.g. for setting the backlight intensity) are carried out at startup (also when a General.rebootPanelController() is issued) and when a General.resetAll() or a General.resetAllAndShowStartupGraphic() method is called.

Please note that writing to the 9 special EEPROM locations via the EEPROM.write(int, int) method does not call the associated method. The new settings will only become active upon startup. When you want to set something like the backlight intensity, use the appropriate method instead of – or in addition to – the EEPROM.write(int, int) method.

Note

_INSERT_CONSTRUCTOR_ENTRY_HERE_

Public Methods

Methods inherited from java.lang.Object

_INSERT_INHERITED_METHOD_ENTRY_HERE_

_INSERT_FIELDS_ENTRY_HERE_