2021-10-01 00:21:50 +08:00
|
|
|
import STM32
|
|
|
|
import PikaPiZero
|
|
|
|
import PikaStdLib
|
2021-10-11 20:14:34 +08:00
|
|
|
import PikaMath
|
2021-10-01 00:21:50 +08:00
|
|
|
|
|
|
|
time = STM32.Time()
|
|
|
|
uart = STM32.UART()
|
|
|
|
adc = STM32.ADC()
|
|
|
|
pin = STM32.GPIO()
|
|
|
|
pwm = STM32.PWM()
|
|
|
|
uart = STM32.UART()
|
|
|
|
rgb = PikaPiZero.RGB()
|
|
|
|
mem = PikaStdLib.MemChecker()
|
2021-10-11 20:14:34 +08:00
|
|
|
op = PikaMath.Operator()
|
2021-10-01 00:21:50 +08:00
|
|
|
|
|
|
|
uart.init()
|
|
|
|
uart.setId(1)
|
|
|
|
uart.setBaudRate(115200)
|
|
|
|
uart.enable()
|
|
|
|
|
|
|
|
rgb.init()
|
|
|
|
rgb.enable()
|
|
|
|
|
|
|
|
print('hello 2')
|
|
|
|
print('mem used max:')
|
2021-10-16 12:59:00 +08:00
|
|
|
mem.max()
|
|
|
|
|
|
|
|
while True:
|
|
|
|
time.sleep_ms(10)
|
|
|
|
rgb.flow()
|
|
|
|
print('flowing')
|
2021-10-01 00:21:50 +08:00
|
|
|
|
2021-10-10 10:57:13 +08:00
|
|
|
|