change pin to pa8

This commit is contained in:
Lyon 2021-10-04 11:19:17 +08:00
parent aacbc522ee
commit ca7561c4b4
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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)