티스토리 뷰

OS/micro:bit

yotta 설치

파란크리스마스 2018. 6. 16. 04:15
728x90

출처

yotta 설치

python.exe -m pip install --upgrade pip==9.0.3
pip install --upgrade setuptools
pip install -I -U yotta

환경변수 설정 (run_yotta.bat c:\yotta 명령으로 설정 가능)

YOTTA_INSTALL_LOCATION=C:\yotta
YOTTA_PATH=;C:\yotta;C:\yotta\gcc\bin;C:\yotta\python;C:\yotta\python\Scripts;C:\yotta\cmake-3.4.0-rc3-win32-x86\bin;C:\yotta\git-scm\bin;C:\yotta\mercurial\bin;
PATH=C:\yotta;C:\yotta\python\;C:\yotta\python\Scripts;C:\yotta\cmake-3.4.0-rc3-win32-x86\bin;%PATH%

개발환경 만들기

D:\>run_yotta.bat
(workspace) D:\>mkdir pulse
(workspace) D:\>cd pulse
(workspace) D:\pulse>yotta init
(workspace) D:\pulse>yotta target bbc-microbit-classic-gcc
(workspace) D:\pulse>yotta install lancaster-university/microbit

main.cpp

#include "MicroBit.h" 
 
MicroBit uBit;  
 
int main() { 
  uBit.init(); 
  uBit.display.scroll("http://bluexmas.tistory.com"); 
  release_fiber(); 
}

빌드 - hex 파일 생성

(workspace) D:\pulse>yotta build

실행

pulse-combined.hex 파일 마이크로 비트에 복사

댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함