28 lines
396 B
Python
Raw Normal View History

2021-10-01 00:21:50 +08:00
import STM32
2021-10-06 23:08:35 +08:00
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()
2021-10-06 23:08:35 +08:00
adc = STM32.ADC()
pin = STM32.GPIO()
pwm = STM32.PWM()
uart = STM32.UART()
mem = PikaStdLib.MemChecker()
2021-10-11 20:14:34 +08:00
op = PikaMath.Operator()
2021-10-06 23:08:35 +08:00
2021-10-01 00:21:50 +08:00
uart.init()
uart.setId(1)
2021-10-06 23:08:35 +08:00
uart.setBaudRate(115200)
2021-10-01 00:21:50 +08:00
uart.enable()
2021-10-06 23:08:35 +08:00
print('hello 2')
print('mem used max:')
mem.max()
2021-10-01 00:21:50 +08:00
while True:
2021-10-06 23:08:35 +08:00
time.sleep_ms(10)
print('flowing...')