summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/camera.cpp3
-rw-r--r--src/main.cpp13
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();
+ }
+}