summaryrefslogtreecommitdiffstats
path: root/init.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'init.hpp')
-rw-r--r--init.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.hpp b/init.hpp
index 26b884f..c7d83df 100644
--- a/init.hpp
+++ b/init.hpp
@@ -1,5 +1,4 @@
-#ifndef __INIT_H__
-#define __INIT_H__
+#pragma once
// To modify the I2C port used, change the `#define I2C_PORT` in "oled/BitBang_I2C.c"
// Pin numbers are GPIO pins.
@@ -8,6 +7,9 @@
#define RESET_PIN -1
#define OLED_DEFAULT_CONTRAST 40
+#define OLED_WIDTH 128
+#define OLED_HEIGHT 64
+
// Initial date & time
// The idea is to have the compiler set the date at compile-time.
// DOTW: 0 is Sunday
@@ -27,5 +29,3 @@
void init_all();
// Init onboard RTC
void init_rtc();
-
-#endif \ No newline at end of file