Organisation and delete temphumidtest

This commit is contained in:
LazyAssassin445
2017-02-28 15:47:07 +00:00
parent f06f8b1a0e
commit b830ef7d0d
7 changed files with 22 additions and 1 deletions

16
testprograms/temphumidtest Normal file → Executable file
View File

@@ -1 +1,15 @@
tests and stuff
#!/usr/bin/python3
import os, sys
lib_path = os.path.abspath(os.path.join('..', 'modules'))
sys.path.append(lib_path)
import hdc1000
hdc1000.init()
print("Temperature: %.2f C" % hdc1000.temperature())
print("Humidity: %.2f %%" % hdc1000.humidity())
hdc1000.done()