diff options
author | Lizzy Hunt <lizzy.hunt@usu.edu> | 2023-11-21 13:29:11 -0700 |
---|---|---|
committer | Lizzy Hunt <lizzy.hunt@usu.edu> | 2023-11-21 13:34:42 -0700 |
commit | 205bddb307a1148828ae1cdbc56e960a401834a3 (patch) | |
tree | 960be56f99a79c04284fdf426de2a1f2de641deb /src | |
download | gbarubik-205bddb307a1148828ae1cdbc56e960a401834a3.tar.gz gbarubik-205bddb307a1148828ae1cdbc56e960a401834a3.zip |
init
Diffstat (limited to 'src')
-rw-r--r-- | src/camera.cpp | 3 | ||||
-rw-r--r-- | src/main.cpp | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/camera.cpp b/src/camera.cpp new file mode 100644 index 0000000..e77b881 --- /dev/null +++ b/src/camera.cpp @@ -0,0 +1,3 @@ +#include "Camera.hpp" + +Camera::Camera() : m_pos(0) {} diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..24a5e01 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,13 @@ +#include "Camera.hpp" +#include <tonc.h> + +int main() { + irq_init(NULL); + irq_enable(II_VBLANK); + + REG_DISPCNT = DCNT_MODE4; + + while (1) { + VBlankIntrWait(); + } +} |