例如,以下編碼將根據針腳0上的數位讀取來更改micro:bit的顯示:. from microbit import *. while True: if pin0.read_digital():. display.show(Image.HAPPY).
確定! 回上一頁