From eea621ab54c2b88f90a4a1590944122bb350d8cf Mon Sep 17 00:00:00 2001 From: Mike Barela Date: Thu, 2 Aug 2018 11:02:46 -0400 Subject: [PATCH] Update time-light-temp.py Slight change in timings to allow Google Sheets to align the columns ok. Sped up character input from 1/4 sec to 1/5 second. --- Make_It_Log/time-light-temp.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Make_It_Log/time-light-temp.py b/Make_It_Log/time-light-temp.py index 7e3dc965..26a1c00d 100644 --- a/Make_It_Log/time-light-temp.py +++ b/Make_It_Log/time-light-temp.py @@ -37,7 +37,7 @@ print("Time\tLight\tTemperature") # Print column headers def slow_write(string): # Typing should not be too fast for for c in string: # the computer to be able to accept layout.write(c) - time.sleep(0.25) # use 1/4 second pause between characters + time.sleep(0.2) # use 1/5 second pause between characters while True: if switch.value: # If the slide switch is on, don't log @@ -58,10 +58,10 @@ while True: kbd.release_all() for _ in range(3): kbd.press(Keycode.LEFT_ARROW) - time.sleep(0.01) + time.sleep(0.015) kbd.release_all() - time.sleep(0.01) + time.sleep(0.025) # Wait a bit more for Google Sheets led.value = False -# Add time.sleep(1.0) to wait more between samples -# Change 1.0 to whatever time you need + # Change 0.1 to whatever time you need between readings + time.sleep(0.1)