Skip to content

PWM conflcit #2

@MarcScott

Description

@MarcScott

Code I ran:

from picozero import LED
from time import sleep

blue = LED(12)
green = LED(11)
white = LED(15)
purple = LED(13)
red = LED(8)
orange = LED(9)
grey = LED(14)
yellow = LED(10)

Error I received

Traceback (most recent call last):
  File "<stdin>", line 9, in <module>
  File "picozero.py", line 229, in LED
  File "picozero.py", line 177, in __init__
  File "picozero.py", line 138, in __init__
  File "picozero.py", line 149, in _check_pwm_channel
PWMChannelAlreadyInUse: PWM channel 4B is already in use by pin 25

This was using picozero.py from Master

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions