2025년 4월 6일 일요일

온도 센서




소스 코드 예시
from microbit import *

while True:
    temp = temperature()
    display.show(str(temp) + "C")
    sleep(1000)



소스 코드 예시
from microbit import *

while True:
    x = accelerometer.get_x()
    if x < -300 or x > 300:
        temp = temperature()
        display.show(str(temp))





댓글 없음:

댓글 쓰기