Basic init page

This commit is contained in:
Pawel Spychalski (DzikuVx)
2018-05-14 20:08:45 +02:00
parent 755f9ffbab
commit d31761a4b3
4 changed files with 97 additions and 49 deletions

28
crossbow/tx_oled.h Normal file
View File

@@ -0,0 +1,28 @@
#pragma once
#ifndef TX_OLED_H
#define TX_OLED_H
#include <Adafruit_SSD1306.h>
#include "Wire.h"
#include "variables.h"
#define OLED_RESET -1
enum txOledPages {
TX_PAGE_NONE,
TX_PAGE_INIT,
};
class TxOled {
public:
TxOled(void);
void init(volatile RadioState_t *radioState);
void page(int page);
private:
volatile RadioState_t *_radioState;
Adafruit_SSD1306 _display;
void pageInit(void);
};
#endif