diff options
author | Ryan <fauxpark@gmail.com> | 2020-03-01 17:56:50 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 17:56:50 +1100 |
commit | c9e3fa6f702d7b814c408f1476e43ce6cdd8f7d8 (patch) | |
tree | 14c44c3670da10f6e286ad4e14e6af2bc5cc015f /drivers/oled/oled_driver.c | |
parent | f513a9193cdde47d1da7f647088beec8f280e4f3 (diff) | |
download | qmk_firmware-c9e3fa6f702d7b814c408f1476e43ce6cdd8f7d8.tar.gz qmk_firmware-c9e3fa6f702d7b814c408f1476e43ce6cdd8f7d8.zip |
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.c | 11 |
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 |