Minor fix: one typo and corrected an EEPROM.write to EEPROM.update

master
Jay 5 years ago
parent 264f4198ce
commit 9ddb32ed99

@ -1,7 +1,7 @@
/* /*
HiFiLOGIX 0.2.0 HiFiLOGIX 0.2.0 (Fix 1)
dewdude@gmail.com - 09-JAN-2019 dewdude@gmail.com - 12-JAN-2019
!!! IMPORTANT NOTICE !!! !!! IMPORTANT NOTICE !!!
@ -17,7 +17,7 @@
Pin 2 is used for the hardware interrupt trigger that writes the data. It's Pin 2 is used for the hardware interrupt trigger that writes the data. It's
set to run fall. This will be done in hardware by isolating a capacitor for set to run fall. This will be done in hardware by isolating a capacitor for
the Arduino and tying pin 2 to the part of the power supply that will drop the Arduino and tying pin 2 to the part of the power supply that will drop
first. The reserve current should last long enough to update the falues before first. The reserve current should last long enough to update the values before
draining. draining.
*/ */
@ -84,7 +84,7 @@ if (EEPROM.read(dt) == 'T') { // Check address 102
} }
void lastbreath() { // The idea here is to throw a large capacitor on to the voltage rail void lastbreath() { // The idea here is to throw a large capacitor on to the voltage rail
EEPROM.write(db, eop); // powering the Arduino; but keep it from powering anything else. EEPROM.update(db, eop); // powering the Arduino; but keep it from powering anything else.
EEPROM.update(dx, ex); // Monitor the "other" 5V rail with pin 2 and trigger an interrupt EEPROM.update(dx, ex); // Monitor the "other" 5V rail with pin 2 and trigger an interrupt
EEPROM.update(di, ei); // and rely on the caps charge to keep charge long enough to write. EEPROM.update(di, ei); // and rely on the caps charge to keep charge long enough to write.
} }

Loading…
Cancel
Save