16 lines
242 B
Python
Raw Normal View History

2021-12-05 00:10:21 +08:00
import PikaStdLib
2021-12-11 18:29:13 +08:00
import STM32F1
2021-12-05 00:10:21 +08:00
print('hello PikaScript!')
2021-12-11 22:13:14 +08:00
led = STM32F1.GPIO()
led.setPin('PA8')
led.setMode('out')
led.enable()
time = STM32F1.Time()
while True:
led.high()
time.sleep_ms(500)
led.low()
time.sleep_ms(500)