Calvin Robinson / Mbed 2 deprecated microbit_rubber_ducky

Dependencies:   BLE_API mbed nRF51822

Fork of microbit_presenter by micro:bit

Files at this revision

API Documentation at this revision

Comitter:
CalvinR
Date:
Mon Aug 21 12:24:51 2017 +0000
Parent:
2:fd2697cadbd3
Commit message:
v1

Changed in this revision

keyboard_stream.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/keyboard_stream.cpp	Wed Aug 31 19:01:30 2016 +0000
+++ b/keyboard_stream.cpp	Mon Aug 21 12:24:51 2017 +0000
@@ -45,8 +45,8 @@
 BLE ble;
 KeyboardService *kbdServicePtr;
 
-static const char DEVICE_NAME[] = "micro:bit Presenter";
-static const char SHORT_DEVICE_NAME[] = "kbd1";
+static const char DEVICE_NAME[] = "micro:bit Rubber Ducky";
+static const char SHORT_DEVICE_NAME[] = "ducky";
 
 static void onDisconnect(const Gap::DisconnectionCallbackParams_t *params)
 {
@@ -82,12 +82,19 @@
     }
 }
 
+// Left = \x95
+// Right = \x94
+// Up = \x97
+// Down = \x96
+
+// Save a file with default name = "\x99,s,\n"
+
 void send_stuff() {
-    send_string("n");
+    send_string("\x99,s,\n");
 }
 
 void send_more_stuff() {
-    send_string("p");
+    send_string("\x8C");
 }
 
 int main()