From bb88522d513c127c0ee63aa00c33164a82c237d4 Mon Sep 17 00:00:00 2001 From: Pierrick C Date: Fri, 3 Aug 2018 10:59:14 +0200 Subject: [PATCH] Updated directory arch --- circuitpython/{ => code}/boot.py | 0 circuitpython/{ => code}/main.py | 9 ++++++--- 2 files changed, 6 insertions(+), 3 deletions(-) rename circuitpython/{ => code}/boot.py (100%) rename circuitpython/{ => code}/main.py (97%) diff --git a/circuitpython/boot.py b/circuitpython/code/boot.py similarity index 100% rename from circuitpython/boot.py rename to circuitpython/code/boot.py diff --git a/circuitpython/main.py b/circuitpython/code/main.py similarity index 97% rename from circuitpython/main.py rename to circuitpython/code/main.py index fabf11e..3e96a2f 100644 --- a/circuitpython/main.py +++ b/circuitpython/code/main.py @@ -36,10 +36,10 @@ print_data = True backup_data = True data_to_neopixel = True gps_enable = True -update_interval = 60 # in seconds +update_interval = const(10) # in seconds send_json_data = True datetime_format = "{:04}/{:02}/{:02}_{:02}:{:02}:{:02}" -neopixel_max_value =const(100) #max value instead of brightness to spare some mem +neopixel_max_value =const(70) #max value instead of brightness to spare some mem ####################### @@ -61,7 +61,10 @@ import neopixel class Data: """Class for handling data""" def __init__(self): - self.data = {} + self.data = {'SYS': {}, + 'BME280': {}, + 'GPS': {} + } def update(self): """Read the data from various sensors and update the data dict variable"""