Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants