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

Dependencies:   microbit

Committer:
masakjm
Date:
Sat Sep 22 00:31:39 2018 +0000
Revision:
3:b6e9850d3e76
Parent:
0:28fb3e9ef81a
Child:
4:4fe5674bf409
Minor fixes and annotations added

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 0:28fb3e9ef81a 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 0:28fb3e9ef81a 7 // The MIT License (MIT) Copyright (c) 2018 Masatomo Kojima
masakjm 0:28fb3e9ef81a 8 //
masakjm 0:28fb3e9ef81a 9 // LED message
masakjm 0:28fb3e9ef81a 10 // S key code setting sw1,2
masakjm 0:28fb3e9ef81a 11 // T key code setting sw3
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 0:28fb3e9ef81a 22 //
masakjm 0:28fb3e9ef81a 23 // I refer to information written on the following sites.
masakjm 0:28fb3e9ef81a 24 // (1)https://os.mbed.com/teams/microbit/code/microbit_presenter/
masakjm 0:28fb3e9ef81a 25 // Licensed under the Apache License, Version 2.0
masakjm 0:28fb3e9ef81a 26 //
masakjm 0:28fb3e9ef81a 27 // (2)https://lancaster-university.github.io/microbit-docs/
masakjm 0:28fb3e9ef81a 28 // The MIT License (MIT)
masakjm 0:28fb3e9ef81a 29 // Copyright (c) 2016 British Broadcasting Corporation.
masakjm 0:28fb3e9ef81a 30 //
masakjm 0:28fb3e9ef81a 31
masakjm 0:28fb3e9ef81a 32 Version
masakjm 0:28fb3e9ef81a 33 3SW-180917 初期リリース
masakjm 0:28fb3e9ef81a 34