dumdiedum
This commit is contained in:
parent
58eaf1cfc0
commit
1524274303
2
power.py
2
power.py
@ -17,7 +17,7 @@ lpower = 10000
|
|||||||
#start busy loop
|
#start busy loop
|
||||||
while True:
|
while True:
|
||||||
#wait for a falling edge on gpio 24
|
#wait for a falling edge on gpio 24
|
||||||
#GPIO.wait_for_edge(24, GPIO.FALLING)
|
GPIO.wait_for_edge(24, GPIO.FALLING)
|
||||||
|
|
||||||
#get current time and calculate current power from difference
|
#get current time and calculate current power from difference
|
||||||
current = time.time()
|
current = time.time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user