kopia lustrzana https://github.com/GuyCarver/MicroPython
16 wiersze
198 B
Python
16 wiersze
198 B
Python
![]() |
#LED testing.
|
||
|
|
||
|
from pyb import *
|
||
|
|
||
|
dC = 5
|
||
|
|
||
|
def test( ):
|
||
|
l = LED(4)
|
||
|
for i in range(255):
|
||
|
l.intensity(i)
|
||
|
delay(dC)
|
||
|
for i in range(255, 0, -1):
|
||
|
l.intensity(i)
|
||
|
delay(dC)
|
||
|
l.off()
|