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

Dependencies:   microbit

Committer:
masakjm
Date:
Tue Apr 09 19:37:57 2019 +0000
Revision:
21:961da341b755
Parent:
20:be8243c064ac
Added setting function of installation direction.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
masakjm 14:469243e10ce5 1 //=================================
masakjm 14:469243e10ce5 2 // microbit_switch_if_joy
masakjm 14:469243e10ce5 3 //=================================
masakjm 14:469243e10ce5 4 // BLE switch interface with GROVE joystic for micro:bit
masakjm 14:469243e10ce5 5 // It is intended for use with ios devices.
masakjm 14:469243e10ce5 6 //
masakjm 14:469243e10ce5 7 // The MIT License (MIT) Copyright (c) 2019 Masatomo Kojima
masakjm 14:469243e10ce5 8 //
masakjm 14:469243e10ce5 9 // LED message
masakjm 14:469243e10ce5 10 // S key code setting
masakjm 14:469243e10ce5 11 // C Conected
masakjm 14:469243e10ce5 12 // P success Pearing
masakjm 14:469243e10ce5 13 // F Fail pearing
masakjm 14:469243e10ce5 14 // E Error at sending data by ble
masakjm 14:469243e10ce5 15 // e Error at writting data to flash memory
masakjm 14:469243e10ce5 16 // I Error by Incorrect cording
masakjm 14:469243e10ce5 17 // G GROVE sensor connect error
masakjm 14:469243e10ce5 18 //
masakjm 14:469243e10ce5 19 // Please refer to the following site. (Japanese only)
masakjm 14:469243e10ce5 20 // http://mahoro-ba.net/files/workshop_text_switch_if_104.pdf
masakjm 20:be8243c064ac 21 // http://mahoro-ba.net/files/workshop_text_switch_if_301.pdf
masakjm 21:961da341b755 22 // http://mahoro-ba.net/files/workshop_text_switch_if_404.pdf
masakjm 14:469243e10ce5 23 //
masakjm 14:469243e10ce5 24 // I refer to information written on the following sites.
masakjm 14:469243e10ce5 25 // (1)https://os.mbed.com/teams/microbit/code/microbit_presenter/
masakjm 14:469243e10ce5 26 // Licensed under the Apache License, Version 2.0
masakjm 14:469243e10ce5 27 //
masakjm 14:469243e10ce5 28 // (2)https://lancaster-university.github.io/microbit-docs/
masakjm 14:469243e10ce5 29 // The MIT License (MIT)
masakjm 14:469243e10ce5 30 // Copyright (c) 2016 British Broadcasting Corporation.
masakjm 14:469243e10ce5 31 //
masakjm 14:469243e10ce5 32
masakjm 14:469243e10ce5 33 Version
masakjm 14:469243e10ce5 34 JOY-190225 初版リリース(3SW-190215から派生)
masakjm 16:1f50a27806ee 35 JOY-190316 S=3のキー割り当てを変更
masakjm 19:4354c463c36c 36 JOY-190320 安定性改善
masakjm 19:4354c463c36c 37 JOY-190330 S=5のキー割り当てを追加
masakjm 21:961da341b755 38 JOY-190410 安定性改善,設置方向の設定機能を追加