mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
16 lines
242 B
Python
16 lines
242 B
Python
import PikaStdLib
|
|
import STM32F1
|
|
|
|
print('hello PikaScript!')
|
|
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)
|