Science & Technology

  • 분류 전체보기 (16)
    • 피지컬 컴퓨터(마이크로 비트, 아두이노) (10)
    • 전자회로 (1)
    • 물리학I 기출문제 풀이 (5)
      • 전류에 의한 자기장 (1)
      • 물질의 자성 (1)
      • 전자기 유도 (1)
      • 굴절과 전반사 (1)
      • 빛과 물질의 이중성(광전효과, 물질파) (1)
    • 물리학I (0)
    • 아두이노 (0)
    • 3D 디자인(Fusion 360) (0)
    • 과학실험 (0)
  • 홈
  • 태그
  • 방명록
/ /

마이크로비트 실습4. 자이로센서 방위각

2020. 9. 29. 12:26

 

microbit-micropython.readthedocs.io/en/v1.0.1/index.html

 

BBC micro:bit MicroPython documentation — BBC micro:bit MicroPython 1.0.1 documentation

The BBC micro:bit is a small computing device for children. One of the languages it understands is the popular Python programming language. The version of Python that runs on the BBC micro:bit is called MicroPython. This documentation includes lessons for

microbit-micropython.readthedocs.io

1. 자이로 센서로 방향 읽기

 

from microbit import *
compass.calibrate()

while True:
    reading = compass.heading()
    print(reading)

 

'피지컬 컴퓨터(마이크로 비트, 아두이노)' 카테고리의 다른 글

마이크로비트 실습 6. 반복문  (0) 2020.10.13
마이크로비트 실습 5. 조건문과 버튼  (0) 2020.10.13
마이크로 비트 실습3. 디지털 출력  (0) 2020.10.08
마이크로 비트 실습 1. 내장 LED 이미지 출력  (0) 2020.10.08
마이크로 비트 실습2. 입력 받기  (0) 2020.10.08

+ Recent posts

Powered by Tistory, Designed by wallel
Rss Feed and Twitter, Facebook, Youtube, Google+

티스토리툴바