mirror of
https://github.com/DashyFox/MusicRing.git
synced 2025-06-27 20:59:28 +00:00
arduino
This commit is contained in:
@ -1,12 +1,12 @@
|
||||
#pragma once
|
||||
#include "../modules/Display.h"
|
||||
|
||||
#include <Adafruit_SSD1306.h>
|
||||
#include "Adafruit_SSD1306.h"
|
||||
|
||||
class Display_Adafruit_SSD1306 : public Display {
|
||||
class Screen : public Display {
|
||||
public:
|
||||
Adafruit_SSD1306* adafruit;
|
||||
Display_Adafruit_SSD1306(uint16_t width, uint16_t height, uint16_t orientation) : Display(width, height, orientation) {
|
||||
Screen(uint16_t width, uint16_t height, uint16_t orientation) : Display(width, height, orientation) {
|
||||
adafruit = new Adafruit_SSD1306(width, height, &Wire, -1);
|
||||
};
|
||||
|
||||
@ -16,11 +16,14 @@ public:
|
||||
}
|
||||
|
||||
|
||||
void writePixel() override {
|
||||
// void writePixel() override {
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
~Display_Adafruit_SSD1306() {
|
||||
|
||||
|
||||
~Screen() {
|
||||
delete adafruit;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user