From ee3dfc117e05e059a2ce57cc1c1cc4ba20406425 Mon Sep 17 00:00:00 2001 From: LazyAssassin445 Date: Sat, 4 Mar 2017 12:51:31 +0000 Subject: [PATCH] remove loop from module, use channel 7 --- modules/{weight => weight.py} | 3 --- testprograms/weighttest | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) rename modules/{weight => weight.py} (80%) 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)