コード例 #1
0
 public void WriteEEPROM(int address, byte value)
 {
     if (address >= 0 && address < DLL.EEPROM_size())
     {
         DLL.EEPROM_write(address, value);
     }
 }
コード例 #2
0
 public byte[] ReadEEPROM()
 {
     byte[] eeprom = new byte[DLL.EEPROM_size()];
     for (int i = 0; i < eeprom.Length; i++)
     {
         eeprom[i] = ReadEEPROM(i);
     }
     return(eeprom);
 }
コード例 #3
0
 public byte ReadEEPROM(int address)
 {
     if (address >= 0 && address < DLL.EEPROM_size())
     {
         return(DLL.EEPROM_read(address));
     }
     else
     {
         // Reading outside the memory
         return(0);
     }
 }