More inputs and outputs added in simulator
* Set default value for battery sensor input * Show EEPROM values as unsigned. * Simulate K1 to K7 inputs (valve and trills++)
This commit is contained in:
parent
0871b2582d
commit
9357d4b827
4 changed files with 177 additions and 26 deletions
|
|
@ -13,14 +13,14 @@ EEPROMClass::EEPROMClass() {
|
|||
|
||||
uint8_t EEPROMClass::read( int idx )
|
||||
{
|
||||
printf("Reading EEPROM address %d: %d\n", idx, someFakeEEPROM_memory[idx]);
|
||||
printf("Reading EEPROM address %u: %u\n", idx, 0xff&someFakeEEPROM_memory[idx]);
|
||||
return someFakeEEPROM_memory[idx];
|
||||
}
|
||||
|
||||
|
||||
void EEPROMClass::write( int idx, uint8_t val )
|
||||
{
|
||||
printf("Writing to EEPROM address %d = %d\n", idx, val);
|
||||
printf("Writing to EEPROM address %u = %u\n", idx, val);
|
||||
someFakeEEPROM_memory[idx] = val;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue