added pull up resistor

This commit is contained in:
2026-04-18 22:25:35 +05:30
parent 2e15caf8ee
commit 5989dea45c

View File

@@ -1,7 +1,7 @@
import time import time
from machine import Pin from machine import Pin
Inverter_Pin = Pin(4, Pin.IN) Inverter_Pin = Pin(4, Pin.IN, Pin.PULL_UP)
while True: while True:
print(Inverter_Pin.value()) print(Inverter_Pin.value())