Fix: 修复MicroPython MixGoAI和Microbit下一些py异常同时格式化代码

This commit is contained in:
王立帮
2024-12-03 10:36:49 +08:00
parent e6c9a30bdc
commit ee04dadb66
71 changed files with 3265 additions and 2382 deletions

View File

@@ -1,6 +1,7 @@
from microbit import *
def angle(pin, angle):
pin.set_analog_period(round((1/50) * 1000))
pin.set_analog_period(round((1 / 50) * 1000))
duty = 26 + (angle * 102) / 180
pin.write_analog(duty)
pin.write_analog(duty)