BLE switch interface with GROVE joystic for micro:bit http://mahoro-ba.net/e2073.html

Dependencies:   microbit

Committer:
masakjm
Date:
Fri Feb 15 02:54:37 2019 +0000
Revision:
9:4a977a37097a
Parent:
6:bd39b12d4ac8
Child:
10:2211b05c1dac

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
masakjm 0:28fb3e9ef81a 1 //=================================
masakjm 0:28fb3e9ef81a 2 // microbit_switch_if_3sw
masakjm 0:28fb3e9ef81a 3 //=================================
masakjm 6:bd39b12d4ac8 4 // BLE switch interface with 3 tact switches for micro:bit
masakjm 0:28fb3e9ef81a 5 // It is intended for use with ios devices.
masakjm 0:28fb3e9ef81a 6 //
masakjm 6:bd39b12d4ac8 7 // The MIT License (MIT) Copyright (c) 2019 Masatomo Kojima
masakjm 0:28fb3e9ef81a 8 //
masakjm 0:28fb3e9ef81a 9 // LED message
masakjm 6:bd39b12d4ac8 10 // S key code setting P1, P2
masakjm 6:bd39b12d4ac8 11 // T key code setting P0
masakjm 0:28fb3e9ef81a 12 // C Conected
masakjm 0:28fb3e9ef81a 13 // P success Pearing
masakjm 0:28fb3e9ef81a 14 // F Fail pearing
masakjm 0:28fb3e9ef81a 15 // E Error at sending data by ble
masakjm 0:28fb3e9ef81a 16 // e Error at writting data to flash memory
masakjm 0:28fb3e9ef81a 17 // I Error by Incorrect cording
masakjm 0:28fb3e9ef81a 18 //
masakjm 0:28fb3e9ef81a 19 // Please refer to the following site. (Japanese only)
masakjm 0:28fb3e9ef81a 20 // http://mahoro-ba.net/e2036.html
masakjm 0:28fb3e9ef81a 21 // http://mahoro-ba.net/e2039.html
masakjm 6:bd39b12d4ac8 22 // http://mahoro-ba.net/e2065.html
masakjm 0:28fb3e9ef81a 23 //
masakjm 0:28fb3e9ef81a 24 // I refer to information written on the following sites.
masakjm 0:28fb3e9ef81a 25 // (1)https://os.mbed.com/teams/microbit/code/microbit_presenter/
masakjm 0:28fb3e9ef81a 26 // Licensed under the Apache License, Version 2.0
masakjm 0:28fb3e9ef81a 27 //
masakjm 0:28fb3e9ef81a 28 // (2)https://lancaster-university.github.io/microbit-docs/
masakjm 0:28fb3e9ef81a 29 // The MIT License (MIT)
masakjm 0:28fb3e9ef81a 30 // Copyright (c) 2016 British Broadcasting Corporation.
masakjm 0:28fb3e9ef81a 31 //
masakjm 0:28fb3e9ef81a 32
masakjm 0:28fb3e9ef81a 33 Version
masakjm 4:4fe5674bf409 34 3SW-180917 初版リリース
masakjm 4:4fe5674bf409 35 3SW-180922 軽微な修正
masakjm 4:4fe5674bf409 36 3SW-181125 "makey makey" style touch sensor に対応
masakjm 4:4fe5674bf409 37 ボタンA:RIGHT_ARROW ボタンB:LEFT_ARROW に変更
masakjm 6:bd39b12d4ac8 38 3SW-190114 P1とP2のコード設定をSの値で、P0のコード設定をTの値でするように変更
masakjm 6:bd39b12d4ac8 39        P15は、P2と同じ動作
masakjm 9:4a977a37097a 40 3SW-190215 ボタンA:'A' ボタンB:'B' に変更
masakjm 9:4a977a37097a 41        P16は、P1と同じ動作
masakjm 4:4fe5674bf409 42