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
|
from math import e, exp, pi, sin
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ class LED(Extension):
|
|||||||
val=100,
|
val=100,
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
self._led = pulseio.PWMOut(led_pin)
|
self._led = pwmio.PWMOut(led_pin)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
raise InvalidExtensionEnvironment(
|
raise InvalidExtensionEnvironment(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user