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"""