Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

File "led_panel.py", line 17, in __init__ TypeError: extra keyword arguments given #1

Open
feiying19802021 opened this issue Jan 11, 2024 · 1 comment

Comments

@feiying19802021
Copy link

Init

led = LEDPanel(
pe = Pin(0, Pin.OUT),
pa = Pin(1, Pin.OUT),
pb = Pin(2, Pin.OUT),
pclk = Pin(4, Pin.OUT),
plat = Pin(5, Pin.OUT),
pdr = Pin(6, Pin.OUT),
freq = 1000,
duty = 1
)

w = 32
h = 16

File "", line 13, in
File "led_panel.py", line 17, in init
TypeError: extra keyword arguments given

What is the reason for this?

@CatMeowByte
Copy link
Owner

i don't see any issue executing from my side, did you run the file as main instead of importing it as library?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants