mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
change pin to pa8
This commit is contained in:
parent
aacbc522ee
commit
ca7561c4b4
@ -6,7 +6,7 @@ io1 = STM32.GPIO()
|
||||
time = STM32.Time()
|
||||
|
||||
io1.init()
|
||||
io1.setPin('PB8')
|
||||
io1.setPin('PA8')
|
||||
io1.setMode('out')
|
||||
io1.enable()
|
||||
io1.low()
|
||||
|
@ -12,5 +12,5 @@ while True:
|
||||
time.sleep_ms(500)
|
||||
pwm.setDuty(0.5)
|
||||
time.sleep_ms(500)
|
||||
pwm.setDuty(0.3)
|
||||
pwm.setDuty(0.001)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user