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

Dependencies:   microbit

Committer:
masakjm
Date:
Fri Feb 22 21:10:14 2019 +0000
Revision:
7:e2779d2fef9c
Parent:
6:bd39b12d4ac8
Child:
12:7fb193872bec
1st release

Who changed what in which revision?

UserRevisionLine numberNew contents of line
masakjm 0:28fb3e9ef81a 1 //=================================
masakjm 7:e2779d2fef9c 2 // microbit_switch_if_joy
masakjm 0:28fb3e9ef81a 3 //=================================
masakjm 7:e2779d2fef9c 4 // BLE switch interface with GROVE joystic 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 7:e2779d2fef9c 10 // S key code setting
masakjm 0:28fb3e9ef81a 11 // C Conected
masakjm 0:28fb3e9ef81a 12 // P success Pearing
masakjm 0:28fb3e9ef81a 13 // F Fail pearing
masakjm 0:28fb3e9ef81a 14 // E Error at sending data by ble
masakjm 0:28fb3e9ef81a 15 // e Error at writting data to flash memory
masakjm 0:28fb3e9ef81a 16 // I Error by Incorrect cording
masakjm 7:e2779d2fef9c 17 // G GROVE sensor connect error
masakjm 0:28fb3e9ef81a 18 //
masakjm 0:28fb3e9ef81a 19 // Please refer to the following site. (Japanese only)
masakjm 7:e2779d2fef9c 20 // http://mahoro-ba.net/files/workshop_text_switch_if_103.pdf
masakjm 7:e2779d2fef9c 21 // http://mahoro-ba.net/files/workshop_text_switch_if_301.pdf
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 7:e2779d2fef9c 33 JOY-190223 初版リリース(3SW-190215から派生)
masakjm 4:4fe5674bf409 34