Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Web Bluetooth APIでMac上のChromeとmicro:bitをBLE接続するデモ

これは何?

詳しくはQiitaのエントリーを御覧ください。 https://qiita.com/yokmama/items/5522fabfb5b9623278e2

使い方

  1. 上記Qiitaエントリーを参考に、micro:bitにファームウェアを書き込む

  2. ダウンロードする

    git clone https://github.com/hine/microbitble.git
    

    もしくは[]ダウンロードリンク](https://github.com/hine/microbitble/archive/master.zip)でZIPファイルをダウンロードして展開する。

  3. index.htmlをchromeで開く

  4. micro:bitの電源を入れる

  5. Mac上のchrome上の画面で「CONNECT」ボタンをクリックし、接続するmicro:bitを選択すると接続されます。

  6. 接続後はmicro:bitを動かすと加速度センサーの値が変化し、画面上のAccel_x〜zの値が変化します。

  7. micro:bitのA/Bボタンを押すとAlertダイアログで押したボタンを表示します。

  8. 「DISCONNECT」ボタンで切断します。

で、これどうすればいいの?!

assets/js/microbitble.jsがmicro:bitと接続するサンプルコードになっています。これを参考に是非色々なWebアプリケーションを作ってください!

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages