26 lines
361 B
Python
Raw Normal View History

2021-10-01 00:21:50 +08:00
import STM32
import PikaPiZero
import PikaStdLib
time = STM32.Time()
uart = STM32.UART()
adc = STM32.ADC()
pin = STM32.GPIO()
pwm = STM32.PWM()
uart = STM32.UART()
rgb = PikaPiZero.RGB()
mem = PikaStdLib.MemChecker()
uart.init()
uart.setId(1)
uart.setBaudRate(115200)
uart.enable()
rgb.init()
rgb.enable()
print('hello 2')
print('mem used max:')
mem.max()