fix monocolor LED
This commit is contained in:
parent
af55acd584
commit
0bebdd6d27
@ -1,4 +1,4 @@
|
||||
import pulseio
|
||||
import pwmio
|
||||
|
||||
from math import e, exp, pi, sin
|
||||
|
||||
@ -27,7 +27,7 @@ class LED(Extension):
|
||||
val=100,
|
||||
):
|
||||
try:
|
||||
self._led = pulseio.PWMOut(led_pin)
|
||||
self._led = pwmio.PWMOut(led_pin)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
raise InvalidExtensionEnvironment(
|
||||
|
Loading…
Reference in New Issue
Block a user