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: Adafruit_GFX MODSERIAL mbed-rtos mbed
display.h
- Committer:
- chrta
- Date:
- 2014-05-01
- Revision:
- 6:506b703a8acf
File content as of revision 6:506b703a8acf:
#ifndef DISPLAY_H
#define DISPLAY_H
#include "mbed.h"
#include "Adafruit_SSD1306.h"
class Display
{
public:
Display();
void clear();
void display();
void sendTo(const char* text);
private:
// an SPI sub-class that provides a constructed default format and frequency
class SPI2 : public SPI
{
public:
SPI2(PinName mosi, PinName miso, PinName clk);
};
SPI2 m_spi;
Adafruit_SSD1306 m_oled;
};
#endif //DISPLAY_H