summaryrefslogtreecommitdiff
path: root/drivers/oled/oled_driver.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-03-01 17:56:50 +1100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-06-12 17:00:27 +0900
commit6f63effe3d1f8ca3b71336bfbcbab12327faf098 (patch)
tree4851dbf42b5a6d00cf9d9531171fbce712abec7e /drivers/oled/oled_driver.c
parent6a724290955739f518e15c3416a8daf7e074ad87 (diff)
Clean up includes for glcdfont headers (#7745)
* Clean up includes for glcdfont headers * Remove pragma once, most of these are not headers * Missed these
Diffstat (limited to 'drivers/oled/oled_driver.c')
-rw-r--r--drivers/oled/oled_driver.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/oled/oled_driver.c b/drivers/oled/oled_driver.c
index e541228ea9..d03b2de3a2 100644
--- a/drivers/oled/oled_driver.c
+++ b/drivers/oled/oled_driver.c
@@ -22,15 +22,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <string.h>
-#if defined(__AVR__)
-# include <avr/io.h>
-# include <avr/pgmspace.h>
-#elif defined(ESP8266)
-# include <pgmspace.h>
-#else // defined(ESP8266)
-# define PROGMEM
+#include "progmem.h"
+#ifndef __AVR__
# define memcpy_P(des, src, len) memcpy(des, src, len)
-#endif // defined(__AVR__)
+#endif
// Used commands from spec sheet: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
// for SH1106: https://www.velleman.eu/downloads/29/infosheets/sh1106_datasheet.pdf