libyggdrasil
v1.0.0
|
Display implementation for Midgard. More...
#include <display.hpp>
Public Types | |
enum | Orientation { Orientation::Portrait = 0x00 } |
Public Member Functions | |
Display (const Display &)=delete | |
Static Public Member Functions | |
static bool | init (Orientation orientation=Orientation::Portrait) noexcept |
static bool | deinit () |
Deinit function. More... | |
static void | reset () noexcept |
static void | turnOn () noexcept |
static void | turnOff () noexcept |
static u16 | getWidth () |
static u16 | getHeight () |
static void | setPalette (const std::array< u32, 256 > &palette) |
static std::array< u32, 256 > | getDefaultPalette () |
static ALWAYS_INLINE void * | getFramebufferAddress () |
static ALWAYS_INLINE void | setPixel (u16 x, u16 y, u8 color) |
static ALWAYS_INLINE void | clear (u8 color) |
Clear the display to a color. More... | |
Friends | |
template<auto , template< auto > typename> | |
struct | bsp::drv::Display |
Declare Display frontend as friend. More... | |
Display implementation for Midgard.
Context | Display Context |
|
strong |
|
delete |
|
inlinestatic |
Clear the display to a color.
color | Index for the color |
|
inlinestatic |
Deinit function.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticnoexcept |
< LcdClk = 27429 kHz
|
inlinestaticnoexcept |
|
inlinestatic |
|
inlinestatic |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
friend |
Declare Display frontend as friend.