led.on() and led.value(1) is actually turning it off whereas 0 or off turns it on
Code: Select all
from machine import Pin
LED_PIN = 2
LED_PIN, Pin.OUT)
led.on()
Code: Select all
from machine import Pin
LED_PIN = 2
LED_PIN, Pin.OUT)
led.on()
Code: Select all
class BLINK():
def __init__(self, pin_num=2):
self._pin_num = pin_num
# Connect to the LED pin
# NOTE - the on board LED uses an inverted output
self._led_pin = Pin(pin_num, Pin.OUT)
self._led = Signal(self._led_pin, invert=True)
Code: Select all
TypeError: extra keyword arguments given
Code: Select all
object <class 'Pin'> is of type type
init -- <function>
value -- <function>
off -- <function>
on -- <function>
irq -- <function>
IN -- 0
OUT -- 1
OPEN_DRAIN -- 2
PULL_UP -- 1
IRQ_RISING -- 1
IRQ_FALLING -- 2
>>>