micro:bit Yotta開発ツール(linux版)
2021/1/9
初版
yotta micro:bit MBED tool
yotta micro:bit MBED tool
概要
micro:bit Yotta開発ツール(linux版)
なお、本ツールは、microbit-v1用である。
インストール手順
mkdir microbit_ws
cd microbit_ws
# 必要なライブラリやツールをインストールする
sudo apt-get update && sudo apt-get install python-setuptools cmake build-essential ninja-build python-dev libffi-dev libssl-dev && sudo easy_install pip
# yotta をインストールする
sudo pip install yotta
# micoribt-samples をダウンロードする
git clone https://github.com/lancaster-university/microbit-samples
cd microbit-samples
# yottaの設定
yt target bbc-microbit-classic-gcc
# src/main.cppがターゲットソースになる
yt build
# ビルド結果(hex)をmicrobitに転送する
# <USER>は実際の環境に合わせる
cp build/bbc-microbit-classic-gcc/source/microbit-samples-combined.hex /media/<USER>/MICROBIT/
なお、source/examples に他のサンプルがある。
参考情報
・yotta Documentation
・yotta: Build Software with Reusable Components
https://os.mbed.com/users/MACRUM/notebook/microbit/
micro:bit の使い方
https://github.com/toyowata/microbit_web_bluetooth/blob/master/README.md
Web Bluetooth(micro:bitとbluetooth接続してブラウザから制御する)
以上
| 固定リンク
「linux」カテゴリの記事
- platfomioを使ってnaitive(linux/windows)のプログラムをビルドする方法(2021.03.10)
- micro:bit Yotta開発ツール(linux版)(2021.01.09)
- PlatformIOをRaspberryPi4で動かしてみる(実験)(2020.10.20)
- headless RaspberryPiインストール方法(v2)(2020.10.20)
- wio-terminalのファームウェア・アップデートについて(linux版)(2020.10.15)
「mbed」カテゴリの記事
- micro:bit Yotta開発ツール(linux版)(2021.01.09)
- micro:bit Arduino/MBED開発ツール(v2)(micro:bit-v2対応,linux版)(2021.01.02)
- NUCLEO-F767ZIにMicropythonをインストールする(v2)(2020.05.22)
- 開発ツールPlatformIOをArchProで使う(mbed版)(2020.05.20)
- 開発ツールmbed-cliをインストールする(2020.04.10)
「micro:bit」カテゴリの記事
- microbit-v2にMicropythonをインストールする(2021.05.06)
- LCDをmicrobit_arduinoで動かす(2021.04.30)
- micro:bitでmicrobit_screenライブラリを利用する(micro:bit-v2対応,linux版)(2021.01.11)
- micro:bit Yotta開発ツール(linux版)(2021.01.09)
- micro:bit Arduino/MBED開発ツール(v2)(micro:bit-v2対応,linux版)(2021.01.02)
この記事へのコメントは終了しました。
コメント