added live pin for grid power monitoring
This commit is contained in:
5
main.py
5
main.py
@@ -1,8 +1,9 @@
|
||||
import time
|
||||
from machine import Pin
|
||||
|
||||
Inverter_Pin = Pin(4, Pin.IN, Pin.PULL_UP)
|
||||
inverter_pin = Pin(4, Pin.IN, Pin.PULL_UP)
|
||||
live_pin = Pin(3, Pin.IN, Pin.PULL_UP)
|
||||
|
||||
while True:
|
||||
print(Inverter_Pin.value())
|
||||
print(f"{inverter_pin.value()}{live_pin.value()}")
|
||||
time.sleep(1)
|
||||
Reference in New Issue
Block a user