diff options
| author | st33v <github@f3rr3t.com> | 2017-06-15 18:03:23 +1000 |
|---|---|---|
| committer | st33v <github@f3rr3t.com> | 2017-06-15 18:03:23 +1000 |
| commit | 1a6c45164d4e1579af81971e5c573c1c34dd4ccd (patch) | |
| tree | bb6f320df0923fd188592d4b0dea1cdbc403963d /ldr-counter.py | |
| parent | 7539c612381ee6f674ae4649aa32df237607c65e (diff) | |
Diffstat (limited to 'ldr-counter.py')
| -rwxr-xr-x | ldr-counter.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ldr-counter.py b/ldr-counter.py index 362ab55..a399457 100755 --- a/ldr-counter.py +++ b/ldr-counter.py @@ -61,7 +61,7 @@ def appendReading (ldrCount): timestamp = datetime.now(timezone.utc).astimezone().isoformat() # write the data - f = open("ldr-readings.txt", "a") + f = open("/home/st33v/sense/light/ldr-readings.txt", "a") f.write(timestamp + ' ' + " ".join(map(str, ldrCount)) + '\n') f.close() @@ -70,10 +70,10 @@ def appendReading (ldrCount): obs=list() # an empty list for num in range(0, obsCount): obs.append(RCtime()) - print(obs) +# print(obs) -print("sum=", sum(obs)) -print("Ave time: ", sum(obs)/obsCount) # Measure timing using GPIO4 +#print("sum =", sum(obs)) +#print("Ave time: ", sum(obs)/obsCount) # Measure timing using GPIO4 appendReading(obs) |
