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

Dependencies:   microbit

Committer:
masakjm
Date:
Sat Jun 08 04:40:57 2019 +0000
Revision:
2:8e2e6c6658be
Parent:
1:9d0e2e5b5d25
Child:
3:d8fd4efb63cc
Improved stability

Who changed what in which revision?

UserRevisionLine numberNew contents of line
masakjm 1:9d0e2e5b5d25 1 //=================================
masakjm 1:9d0e2e5b5d25 2 // microbit_switch_if_3sw
masakjm 1:9d0e2e5b5d25 3 //=================================
masakjm 1:9d0e2e5b5d25 4 // BLE switch interface using micro:bit with 3 tact switches
masakjm 1:9d0e2e5b5d25 5 // It is intended for use with ios devices.
masakjm 1:9d0e2e5b5d25 6 //
masakjm 1:9d0e2e5b5d25 7 // The MIT License (MIT) Copyright (c) 2019 Masatomo Kojima
masakjm 1:9d0e2e5b5d25 8 //
masakjm 1:9d0e2e5b5d25 9 // Please refer to the following documents. (Japanese only)
masakjm 1:9d0e2e5b5d25 10 // http://mahoro-ba.net/files/workshop_text_switch_if_701.pdf
masakjm 1:9d0e2e5b5d25 11 // http://mahoro-ba.net/files/workshop_text_switch_if_208.pdf
masakjm 1:9d0e2e5b5d25 12 //
masakjm 1:9d0e2e5b5d25 13 // I refer to information written on the following sites.
masakjm 1:9d0e2e5b5d25 14 // (1)https://os.mbed.com/teams/microbit/code/microbit_presenter/
masakjm 1:9d0e2e5b5d25 15 // Licensed under the Apache License, Version 2.0
masakjm 1:9d0e2e5b5d25 16 //
masakjm 1:9d0e2e5b5d25 17 // (2)https://lancaster-university.github.io/microbit-docs/
masakjm 1:9d0e2e5b5d25 18 // The MIT License (MIT)
masakjm 1:9d0e2e5b5d25 19 // Copyright (c) 2016 British Broadcasting Corporation.
masakjm 1:9d0e2e5b5d25 20 //
masakjm 1:9d0e2e5b5d25 21
masakjm 1:9d0e2e5b5d25 22 Version
masakjm 1:9d0e2e5b5d25 23 3SW-180917 初版リリース
masakjm 1:9d0e2e5b5d25 24 3SW-180922 軽微な修正
masakjm 1:9d0e2e5b5d25 25 3SW-181125 "makey makey" style touch sensor に対応
masakjm 1:9d0e2e5b5d25 26 ボタンA:RIGHT_ARROW ボタンB:LEFT_ARROW に変更
masakjm 1:9d0e2e5b5d25 27 3SW-190114 P1とP2のコード設定をSの値で、P0のコード設定をTの値でするように変更
masakjm 1:9d0e2e5b5d25 28        P15は、P2と同じ動作
masakjm 1:9d0e2e5b5d25 29 3SW-190215 ボタンA:'A' ボタンB:'B' に変更
masakjm 1:9d0e2e5b5d25 30        P16は、P1と同じ動作
masakjm 1:9d0e2e5b5d25 31 3SW-190313 設定Tを廃止し、設定Sで3つのスイッチの組み合わせを指定するように変更
masakjm 1:9d0e2e5b5d25 32        S=3 をスイッチコントロール用に他で使わないコードを割り当てる
masakjm 1:9d0e2e5b5d25 33 3SW-190316 S=3のキー割り当てを変更
masakjm 2:8e2e6c6658be 34 3SW-190608 キーバッファ方式に変更
masakjm 1:9d0e2e5b5d25 35