4
0
Fork 0
mirror of https://github.com/Robertofon/bienenchaos.git synced 2024-06-06 22:06:23 +02:00
bienenchaos/weight_NAU7802_Tim.py
2020-07-12 20:04:27 +00:00

11 lines
287 B
Python

import nau7802py, time
myScale = nau7802py.NAU7802()
if myScale.begin():
while True:
currentReading = myScale.getReading()
currentWeight = myScale.getWeight()
print('Reading: ' + str(currentReading)+" "+ str(round(currentWeight, 4)))
time.sleep(1)