summaryrefslogtreecommitdiffstats
path: root/drivers/qwiic/micro_oled.h
diff options
context:
space:
mode:
authorNick Winans <nick@winans.codes>2020-02-21 21:11:25 -0600
committerGitHub <noreply@github.com>2020-02-22 14:11:25 +1100
commitd99404388f03f32aaffdf71794c6ebb9f3c92a8d (patch)
treed83793b22d9f7dfd13263d6c57c4c880b711e802 /drivers/qwiic/micro_oled.h
parent3157f5f4361fc9b88398da675d2c7feec11957bd (diff)
Fix QWIIC OLED for AVR (#7769)
* Fix QWIIC OLED for AVR * Change missed width * width to width * height * Fix typo in comment Co-Authored-By: fauxpark <fauxpark@gmail.com> * Fix last incorrect uses of LCDWIDTH Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'drivers/qwiic/micro_oled.h')
-rw-r--r--drivers/qwiic/micro_oled.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/qwiic/micro_oled.h b/drivers/qwiic/micro_oled.h
index 814143df11..6f9106f581 100644
--- a/drivers/qwiic/micro_oled.h
+++ b/drivers/qwiic/micro_oled.h
@@ -63,7 +63,7 @@ void draw_string(uint8_t x, uint8_t y, char* string, uint8_t color, uint8_t mode
#ifndef LCDWIDTH
# define LCDWIDTH 64
#endif
-#ifndef LCDWIDTH
+#ifndef LCDHEIGHT
# define LCDHEIGHT 48
#endif
#define FONTHEADERSIZE 6
@@ -131,4 +131,4 @@ typedef enum CMD {
CMD_GETLCDHEIGHT, // 16
CMD_SETCOLOR, // 17
CMD_SETDRAWMODE // 18
-} commCommand_t; \ No newline at end of file
+} commCommand_t;