From c081d281fedbcab82fece65a46c65b6ddb986475 Mon Sep 17 00:00:00 2001 From: Josh Goebel Date: Sun, 21 Feb 2016 02:00:25 -0500 Subject: [PATCH] reorder defines and use base 10 for clarity --- src/core/core.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/core.h b/src/core/core.h index a0b79ef..e83c33f 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -124,15 +124,15 @@ #define OLED_HORIZ_FLIPPED 0xA0 // reversed segment re-map #define OLED_HORIZ_NORMAL 0xA1 // normal segment re-map - // ----- -#define COLUMN_ADDRESS_END (WIDTH - 1) & 0x7F // 128 pixels wide -#define PAGE_ADDRESS_END ((HEIGHT/8)-1) & 0x07 // 8 pages high - #define WIDTH 128 #define HEIGHT 64 +#define COLUMN_ADDRESS_END (WIDTH - 1) & 127 // 128 pixels wide +#define PAGE_ADDRESS_END ((HEIGHT/8)-1) & 7 // 8 pages high + + class ArduboyCore { public: