back up of work during May 2019

Dependencies:   microbit

Branch:
class_implmentation
Revision:
6:f372773ad32f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bitboard.h	Wed Jun 05 15:21:14 2019 +0000
@@ -0,0 +1,38 @@
+#ifndef BITBOARD_H
+#define BITBOARD_H
+
+#include "MicroBit.h"
+#include "mbed.h"
+#include "ble/BLE.h"
+#include "KeyboardService.h"
+#include "MicroBitPin.h"
+#include "examples_common.h"
+#include "MicroBit.h"
+#include "keymap.h"
+
+class bitboard {
+protected:
+    KeyboardService* kbdServicePtr;
+    const char* DEVICE_NAME;
+    const char* SHORT_DEVICE_NAME;
+    uint8_t Buffer;
+public:
+//    MicroBit &uBit;
+    BLE &ble;
+    bitboard(/**MicroBit &_uBit,**/ BLE &_ble, KeyboardService* _kbdServicePtr, const char* _DEVICE_NAME, const char* _SHORT_DEVICE_NAME);
+    ~bitboard();
+
+    void init();
+//    void start_service();
+//    void start_broadcast();
+    void onDisconnect(const Gap::DisconnectionCallbackParams_t *params);
+    void onConnect(const Gap::ConnectionCallbackParams_t *params);
+    void onButtonA(MicroBitEvent e);
+    void send_keypress();
+    uint8_t get_keycode(char c);
+
+};
+
+
+
+#endif