Update main.py
parent
aca7f9b4b2
commit
8d6e11fa00
6
main.py
6
main.py
|
@ -70,13 +70,13 @@ if __name__ == '__main__':
|
|||
strip.begin()
|
||||
|
||||
if not os.path.exists('./config.ini'):
|
||||
config[''] = {'led_power': True, 'timer': True, 'start_time': '06:00', 'stop_time': '22:00'}
|
||||
config['testing'] = {'led_power': True, 'timer': True, 'start_time': '06:00', 'stop_time': '22:00'}
|
||||
|
||||
write_file()
|
||||
|
||||
led_power = config.get('', 'led_power')
|
||||
led_power = config.get('testing', 'led_power')
|
||||
else:
|
||||
led_power = config.get('', 'led_power')
|
||||
led_power = config.get('testing', 'led_power')
|
||||
|
||||
try:
|
||||
while True:
|
||||
|
|
Loading…
Reference in New Issue