Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of microbit_presenter by
Revision 3:dc7a04d715a2, committed 2017-08-21
- 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()