Merge branch 'master' of https://github.com/LazyAssassin445/pi-box
This commit is contained in:
@@ -12,6 +12,3 @@ def readchannel(channel):
|
|||||||
data = ((adc[1]&3)<<8) + adc[2]
|
data = ((adc[1]&3)<<8) + adc[2]
|
||||||
return data
|
return data
|
||||||
|
|
||||||
while True:
|
|
||||||
print(readchannel(7))
|
|
||||||
time.sleep(.5)
|
|
||||||
@@ -13,5 +13,5 @@ def readchannel(channel):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
print(readchannel(7))
|
print(readchannel(0))
|
||||||
time.sleep(.5)
|
time.sleep(.5)
|
||||||
|
|||||||
Reference in New Issue
Block a user