Port GPU IO

This commit is contained in:
2023-09-17 22:14:48 +02:00
parent 87a7a349cc
commit d7df0b038b
10 changed files with 100 additions and 98 deletions

View File

@@ -28,11 +28,11 @@ namespace JabyEngine {
static uint8_t current_id;
static void enable() {
GPU_IO::GP1 = GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::On);
GPU_IO::GP1.write(GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::On));
}
static void disable() {
GPU_IO::GP1 = GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::Off);
GPU_IO::GP1.write(GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::Off));
}
static void set_offset(uint16_t x, uint16_t y);