2022-01-02 22:33:57 +08:00
|
|
|
import PikaStdLib
|
2022-02-20 20:19:56 +08:00
|
|
|
import machine
|
2021-12-16 21:32:57 +08:00
|
|
|
|
2022-02-20 20:19:56 +08:00
|
|
|
time = machine.Time()
|
|
|
|
adc = machine.ADC()
|
|
|
|
pin = machine.GPIO()
|
|
|
|
pwm = machine.PWM()
|
|
|
|
uart = machine.UART()
|
|
|
|
rgb = machine.RGB()
|
2022-01-02 22:33:57 +08:00
|
|
|
mem = PikaStdLib.MemChecker()
|
2021-12-16 21:32:57 +08:00
|
|
|
|
2022-01-02 22:33:57 +08:00
|
|
|
rgb.init()
|
|
|
|
rgb.enable()
|
2021-12-16 21:32:57 +08:00
|
|
|
|
2022-01-02 22:33:57 +08:00
|
|
|
print('hello 2')
|
2021-12-16 21:32:57 +08:00
|
|
|
print('mem used max:')
|
|
|
|
mem.max()
|
|
|
|
|
|
|
|
while True:
|
2022-01-02 22:33:57 +08:00
|
|
|
print('flowing')
|
|
|
|
rgb.flow()
|
|
|
|
|