2021-10-06 23:08:35 +08:00
|
|
|
import PikaStdLib
|
2022-02-20 20:41:41 +08:00
|
|
|
import machine
|
2021-10-01 00:21:50 +08:00
|
|
|
|
2022-02-20 20:41:41 +08:00
|
|
|
time = machine.Time()
|
|
|
|
adc = machine.ADC()
|
|
|
|
pin = machine.GPIO()
|
|
|
|
pwm = machine.PWM()
|
|
|
|
uart = machine.UART()
|
|
|
|
rgb = machine.RGB()
|
2021-12-27 17:25:33 +08:00
|
|
|
mem = PikaStdLib.MemChecker()
|
2022-02-20 20:41:41 +08:00
|
|
|
|
|
|
|
rgb.init()
|
|
|
|
rgb.enable()
|
|
|
|
|
|
|
|
print('hello 2')
|
2021-10-06 23:08:35 +08:00
|
|
|
print('mem used max:')
|
2021-12-27 17:25:33 +08:00
|
|
|
mem.max()
|
2022-01-16 12:54:04 +08:00
|
|
|
|
|
|
|
while True:
|
2022-02-20 20:41:41 +08:00
|
|
|
print('flowing')
|
2022-01-16 12:54:04 +08:00
|
|
|
rgb.flow()
|
2022-02-20 20:41:41 +08:00
|
|
|
|