2021-10-09 00:29:22 +08:00

25 lines
354 B
Python

import STM32
import PikaStdLib
time = STM32.Time()
uart = STM32.UART()
adc = STM32.ADC()
pin = STM32.GPIO()
pwm = STM32.PWM()
uart = STM32.UART()
mem = PikaStdLib.MemChecker()
uart.init()
uart.setId(1)
uart.setBaudRate(115200)
uart.enable()
print('hello 2')
print('mem used max:')
mem.max()
while True:
time.sleep_ms(10)
print('flowing...')