diff --git a/modules/weight b/modules/weight.py similarity index 80% rename from modules/weight rename to modules/weight.py index 090d5f8..a438a9d 100644 --- a/modules/weight +++ b/modules/weight.py @@ -12,6 +12,3 @@ def readchannel(channel): data = ((adc[1]&3)<<8) + adc[2] return data -while True: - print(readchannel(7)) - time.sleep(.5) diff --git a/testprograms/weighttest b/testprograms/weighttest index 090d5f8..09ef2c9 100755 --- a/testprograms/weighttest +++ b/testprograms/weighttest @@ -13,5 +13,5 @@ def readchannel(channel): return data while True: - print(readchannel(7)) + print(readchannel(0)) time.sleep(.5)