diff --git a/src/main.cpp b/src/main.cpp index baf2de2..7d96633 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,7 @@ +#include #include -#include + +#include "debug.hpp" extern "C" { #include "boxed_dot.h" @@ -16,6 +18,8 @@ const struct { } boxed_dot; int main(void) { + debug::open(); + // Mode 3-5 are bitmap modes. // 3: 240x160 @ 16bpp N page-flip // 4: 240x160 @ 8bpp Y page-flip @@ -24,6 +28,8 @@ int main(void) { // BG2 is the only available background in bitmap modes. REG_DISPCNT = DCNT_MODE3 | DCNT_BG2; + debug::puts("Hello World!"); + // Write gradient from black -> RGB in first three lines. // Each color is displayed on a separate line. // for (size_t i = 0; i < 32; ++i) { @@ -45,5 +51,7 @@ int main(void) { vid_vsync(); } + debug::close(); + return 0; }