mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
23 lines
315 B
Python
23 lines
315 B
Python
import PikaStdLib
|
|
import machine
|
|
|
|
time = machine.Time()
|
|
adc = machine.ADC()
|
|
pin = machine.GPIO()
|
|
pwm = machine.PWM()
|
|
uart = machine.UART()
|
|
rgb = machine.RGB()
|
|
mem = PikaStdLib.MemChecker()
|
|
|
|
rgb.init()
|
|
rgb.enable()
|
|
|
|
print('hello 2')
|
|
print('mem used max:')
|
|
mem.max()
|
|
|
|
while True:
|
|
print('flowing')
|
|
rgb.flow()
|
|
|