There was an error while loading. Please reload this page.
1 parent 58ced98 commit f868ef8Copy full SHA for f868ef8
1 file changed
configure_DS3231/load_eeprom.py
@@ -11,7 +11,15 @@ def get_checksum(value):
11
return checksum
12
13
14
+def do_warning():
15
+ flash = "\x1b[5m"
16
+ no_flash = "\x1b[0m"
17
+ print(flash + "\n\n\x1b[31mWARNING: This script will overwrite the EEPROM of the device connected to the specified serial port.\x1b[0m\n\n" + no_flash)
18
+ time.sleep(20)
19
+
20
21
def main():
22
+ do_warning()
23
print('xxd -c 32 dumpfile.out')
24
serial_device = sys.argv[1]
25
filename = sys.argv[2]
0 commit comments