Introduce QuickFill

This commit is contained in:
Jaby
2022-09-08 21:36:12 +02:00
parent 00cdabb5de
commit b523c2c73f
3 changed files with 33 additions and 22 deletions

View File

@@ -2,7 +2,13 @@
namespace GPU {
void setup() {
Port::GP1.write(Port::Command::GP1::Reset());
Port::GP1.write(Port::Command::GP1::SetDisplayState(Port::DisplayState::On));
//Port::GP1.write(Port::Command::GP1::Reset());
//Quickfill
Port::GP0.write(Port::Command::GP0::QuickFill(Color(0xFF, 0x0, 0x0)));
Port::GP0.write(Port::Command::GP0::TopLeftPosition(8, 8));
Port::GP0.write(Port::Command::GP0::WidthHeight(32, 32));
//Port::GP1.write(Port::Command::GP1::SetDisplayState(Port::DisplayState::On));
}
}