2021-11-21 16:41:08 +08:00
|
|
|
import STM32G0
|
2022-01-02 22:33:57 +08:00
|
|
|
import PikaPiZero
|
|
|
|
import PikaStdLib
|
2021-12-16 21:32:57 +08:00
|
|
|
|
|
|
|
time = STM32G0.Time()
|
2022-01-02 22:33:57 +08:00
|
|
|
adc = STM32G0.ADC()
|
|
|
|
pin = STM32G0.GPIO()
|
|
|
|
pwm = STM32G0.PWM()
|
|
|
|
uart = STM32G0.UART()
|
|
|
|
rgb = PikaPiZero.RGB()
|
|
|
|
mem = PikaStdLib.MemChecker()
|
2021-12-16 21:32:57 +08:00
|
|
|
|
2022-01-02 22:33:57 +08:00
|
|
|
rgb.init()
|
|
|
|
rgb.enable()
|
2021-12-16 21:32:57 +08:00
|
|
|
|
2022-01-02 22:33:57 +08:00
|
|
|
print('hello 2')
|
2021-12-16 21:32:57 +08:00
|
|
|
print('mem used max:')
|
|
|
|
mem.max()
|
|
|
|
|
|
|
|
while True:
|
2022-01-02 22:33:57 +08:00
|
|
|
print('flowing')
|
|
|
|
rgb.flow()
|
|
|
|
|