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: microbit
bitboard.h
- Committer:
- tht216
- Date:
- 2019-06-05
- Branch:
- class_implmentation
- Revision:
- 6:f372773ad32f
File content as of revision 6:f372773ad32f:
#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