You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
381 B
26 lines
381 B
3 years ago
|
#pragma once
|
||
|
|
||
|
#include "gpio-expander.hpp"
|
||
|
|
||
|
namespace gay_ipod {
|
||
|
|
||
|
/*
|
||
|
* Display driver for LVGL.
|
||
|
*/
|
||
|
class Display {
|
||
|
public:
|
||
|
enum Error {};
|
||
|
static auto create(GpioExpander* expander)
|
||
|
-> cpp::result<std::unique_ptr<Display>, Error>;
|
||
|
|
||
|
Display(GpioExpander *gpio);
|
||
|
~Display();
|
||
|
|
||
|
void WriteData();
|
||
|
|
||
|
private:
|
||
|
GpioExpander *gpio_;
|
||
|
};
|
||
|
|
||
|
} // namespace gay_ipod
|