LedDisplay/vscode/OmobiLEDdisplayBluetooth/include/OmobiLedDisplay.h
Dorian Zedler 6fbae42867
- added new bluetooth project
- some things work, many not, needs some work
2020-10-13 17:01:29 +02:00

27 lines
661 B
C++

#ifndef OMOBI_LED_DISPLAY
#define OMOBI_LED_DISPLAY
#include <Arduino.h>
#include <ArduinoJson.h>
#include "BluetoothLeUartServer.h"
#include "LedDisplayController.h"
class OmobiLedDisplay : protected BluetoothLeUartServerCallbacks {
public:
explicit OmobiLedDisplay(String deviceName, const byte ledPin);
// befriend for callbacks
friend class BluetoothLeUartServer;
protected:
// calbacks for BluetoothLeUartServerCallbacks
void onDeviceConnectedChanged(bool deviceConnected) override;
void onDataReceived(String data) override;
private:
LedDisplayController* ledDisplayController;
BluetoothLeUartServer * bleServer;
};
#endif // OMOBI_LED_DISPLAY