Data logger code update.
This commit is contained in:
parent
3fb4c22b41
commit
101af0f678
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ led.switch_to_output()
|
|||
try:
|
||||
with open("/temperature.txt", "a") as datalog:
|
||||
while True:
|
||||
temp = microcontroller.cpu[0].temperature
|
||||
temp = microcontroller.cpu.temperature
|
||||
datalog.write('{0:f}\n'.format(temp))
|
||||
datalog.flush()
|
||||
led.value = not led.value
|
||||
|
|
|
|||
Loading…
Reference in a new issue