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

Dependencies:   microbit

Files at this revision

API Documentation at this revision

Comitter:
masakjm
Date:
Sat Mar 30 00:11:35 2019 +0000
Parent:
17:cd518ed30bac
Child:
20:be8243c064ac
Commit message:
Add key assignment of S = 5

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
microbit_switch_if_joy.h Show annotated file Show diff for this revision Revisions of this file
readme.txt Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Mar 19 20:40:31 2019 +0000
+++ b/main.cpp	Sat Mar 30 00:11:35 2019 +0000
@@ -17,7 +17,7 @@
 //    G  GROVE sensor connect error
 //---------------------------------
 
-#define VERSION     "JOY-190320"
+#define VERSION     "JOY-190330"
 //#define NO_DEBUG
 
 #include "microbit_switch_if_joy.h"
--- a/microbit_switch_if_joy.h	Tue Mar 19 20:40:31 2019 +0000
+++ b/microbit_switch_if_joy.h	Sat Mar 30 00:11:35 2019 +0000
@@ -69,7 +69,7 @@
 //----------------------
 //  Setting
 //----------------------
-#define NUM_GROUP1         4
+#define NUM_GROUP1         5
 #define NUM_G1MEMBER       5
 
 
@@ -80,10 +80,11 @@
    MODIFY_COMMAND + 'h'       // アプリ終了
 };
 const int keyCodeGroup1[NUM_GROUP1][NUM_G1MEMBER] = { // 中央 左 右 上 下
-    {KEY_ENTER,   KEY_TAB,     KEY_SPACE,   0,           KEY_ENTER  },
+    {0,           KEY_TAB,     KEY_SPACE,   0,           KEY_ENTER  },
     {KEY_HOME,    RIGHT_ARROW, LEFT_ARROW,  DOWN_ARROW,  UP_ARROW   },
     {KEY_F1,      KEY_F2,      KEY_F3,      KEY_F4,      KEY_F5},
     {MODIFY_COMMAND+'r', 0, 0, MODIFY_OPTION+DOWN_ARROW, MODIFY_OPTION+UP_ARROW},
+    {KEY_ENTER,   KEY_TAB,     KEY_SPACE,   0,           0  },
 };
 
 //in "BLE_HID\Keyboad_types.h"
--- a/readme.txt	Tue Mar 19 20:40:31 2019 +0000
+++ b/readme.txt	Sat Mar 30 00:11:35 2019 +0000
@@ -32,4 +32,5 @@
 Version
 JOY-190225  初版リリース(3SW-190215から派生)
 JOY-190316  S=3のキー割り当てを変更
-JOY-190320  安定性改善            
\ No newline at end of file
+JOY-190320  安定性改善       
+JOY-190330  S=5のキー割り当てを追加