BLE switch interface using micro:bit with 3 tact switches or 3 Makey Makey sensors

Dependencies:   microbit

readme.txt

Committer:
masakjm
Date:
2019-06-11
Revision:
3:d8fd4efb63cc
Parent:
2:8e2e6c6658be

File content as of revision 3:d8fd4efb63cc:

//=================================
// microbit_switch_if_3sw
//=================================
//  BLE switch interface using micro:bit with 3 tact switches
//    It is intended for use with ios devices.
//
//    The MIT License (MIT)   Copyright (c) 2019 Masatomo Kojima
//
//  Please refer to the following documents. (Japanese only)
//     http://mahoro-ba.net/files/workshop_text_switch_if_702.pdf
//     http://mahoro-ba.net/files/workshop_text_switch_if_209.pdf
//
//  I refer to information written on the following sites.
//    (1)https://os.mbed.com/teams/microbit/code/microbit_presenter/
//           Licensed under the Apache License, Version 2.0
//
//    (2)https://lancaster-university.github.io/microbit-docs/
//          The MIT License (MIT)
//          Copyright (c) 2016 British Broadcasting Corporation.
//

Version
3SW-180917  初版リリース
3SW-180922  軽微な修正
3SW-181125  "makey makey" style touch sensor に対応
            ボタンA:RIGHT_ARROW ボタンB:LEFT_ARROW に変更
3SW-190114  P1とP2のコード設定をSの値で、P0のコード設定をTの値でするように変更
       P15は、P2と同じ動作
3SW-190215  ボタンA:'A' ボタンB:'B' に変更
       P16は、P1と同じ動作
3SW-190313  設定Tを廃止し、設定Sで3つのスイッチの組み合わせを指定するように変更
       S=3 をスイッチコントロール用に他で使わないコードを割り当てる
3SW-190316  S=3のキー割り当てを変更
3SW-190607  キーバッファ方式に変更            
3SW-190612  timerの使い方を変更