added live pin for grid power monitoring

This commit is contained in:
2026-04-21 14:37:25 +05:30
parent 5989dea45c
commit 1ae4ade65e

View File

@@ -1,8 +1,9 @@
import time import time
from machine import Pin 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: while True:
print(Inverter_Pin.value()) print(f"{inverter_pin.value()}{live_pin.value()}")
time.sleep(1) time.sleep(1)