# Pin.OUT Pin.IN
# leds = Pin(15, Pin.OUT) this pin for output display or output reader
# leds = Pin(15, Pin.IN) input reader
#
#
# if any(switch.value() for switch in switches): in multi list value checker
#
#
# Input
# led.on() / led.off()
# led.value(1) / led.value(0)
# led.value() if enters value it will print the value if its on (1) or off (0)
#
# toggle() is used to change the states if on (1) turn into off (0)
#
#
#
# ADC
#
# adc=ADC(Pin(26))
# adc.atten --> this for set th voltage 0 to 3.3v
# adc.width --> is used to set the o/p value in 16bit or 9bit or etc...
# adc.read_u16 - This method reads the value from an analog pin using the ADC (Analog-to-Digital Converter) and returns it as a 16-bit unsigned integer (hence u16), which ranges from 0 to 65535.
#
#
#
#
# Pull-Up Resistor (PULL_UP): Pulls the pin to a high state (1) by default, and it reads low (0) when connected to ground (e.g., by pressing a button).
# Pull-Down Resistor (PULL_DOWN): Pulls the pin to a low state (0) by default, and it reads high (1) when connected to a higher voltage (e.g., by pressing a button).
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#