feat: sync all micropython board configurations and scripts

This commit is contained in:
yczpf2019
2026-01-24 16:14:43 +08:00
parent c6dc5537f0
commit 6dce82e125
2066 changed files with 113326 additions and 0 deletions

View File

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