2021-11-16 10:48:19 +08:00

24 lines
324 B
Python

import STM32
import PikaPiZero
import PikaStdLib
time = STM32.Time()
adc = STM32.ADC()
pin = STM32.GPIO()
pwm = STM32.PWM()
uart = STM32.UART()
rgb = PikaPiZero.RGB()
mem = PikaStdLib.MemChecker()
rgb.init()
rgb.enable()
print('hello 2')
print('mem used max:')
mem.max()
while True:
print('flowing')
rgb.flow()