Move SSD1306 function declarations to header file

pull/1204/head
Danny Nguyen 8 years ago
parent d90ac76295
commit e3aeab356a

@ -6,6 +6,9 @@
#ifdef AUDIO_ENABLE #ifdef AUDIO_ENABLE
#include "audio.h" #include "audio.h"
#endif #endif
#ifdef SSD1306OLED
#include "ssd1306.h"
#endif
extern keymap_config_t keymap_config; extern keymap_config_t keymap_config;

@ -37,4 +37,3 @@ void shutdown_user(void) {
stop_all_notes(); stop_all_notes();
#endif #endif
} }

@ -13,17 +13,6 @@
#include <avr/io.h> #include <avr/io.h>
#include <avr/interrupt.h> #include <avr/interrupt.h>
#endif #endif
#ifdef SSD1306OLED
extern bool iota_gfx_init(void);
extern void iota_gfx_task(void);
extern bool iota_gfx_off(void);
extern bool iota_gfx_on(void);
extern void iota_gfx_flush(void);
extern void iota_gfx_write_char(uint8_t c);
extern void iota_gfx_write(const char *data);
extern void iota_gfx_write_P(const char *data);
extern void iota_gfx_clear_screen(void);
#endif
#endif #endif
//void promicro_bootloader_jmp(bool program); //void promicro_bootloader_jmp(bool program);

@ -1,8 +1,7 @@
#include "ssd1306.h"
#include "config.h" #include "config.h"
#include "i2c.h" #include "i2c.h"
#include <stdbool.h>
#include <string.h> #include <string.h>
#include <stdio.h>
#include "print.h" #include "print.h"
#include "lets_split.h" #include "lets_split.h"
#include "common/glcdfont.c" #include "common/glcdfont.c"

@ -0,0 +1,17 @@
#ifndef SSD1306_H
#define SSD1306_H
#include <stdbool.h>
#include <stdio.h>
bool iota_gfx_init(void);
void iota_gfx_task(void);
bool iota_gfx_off(void);
bool iota_gfx_on(void);
void iota_gfx_flush(void);
void iota_gfx_write_char(uint8_t c);
void iota_gfx_write(const char *data);
void iota_gfx_write_P(const char *data);
void iota_gfx_clear_screen(void);
#endif
Loading…
Cancel
Save