mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
29 lines
408 B
Python
29 lines
408 B
Python
time = STM32.Time()
|
|
uart = STM32.UART()
|
|
adc = STM32.ADC()
|
|
pin = STM32.GPIO()
|
|
pwm = STM32.PWM()
|
|
uart = STM32.UART()
|
|
rgb = PikaPiZero.RGB()
|
|
mem = PikaStdLib.MemChecker()
|
|
op = PikaMath.Operator()
|
|
|
|
uart.init()
|
|
uart.setId(1)
|
|
uart.setBaudRate(115200)
|
|
uart.enable()
|
|
|
|
rgb.init()
|
|
rgb.enable()
|
|
|
|
print('hello 2')
|
|
print('mem used max:')
|
|
mem.max()
|
|
|
|
while True:
|
|
time.sleep_ms(10)
|
|
rgb.flow()
|
|
print('flowing')
|
|
|
|
|