Skip to content

Commit

Permalink
Fix ssd1306 compilation on avr-gcc 10 (#9267)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Sep 17, 2020
1 parent 424eeb8 commit e9b3a12
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 6 deletions.
2 changes: 2 additions & 0 deletions drivers/avr/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# include "sendchar.h"
# include "timer.h"

struct CharacterMatrix display;

// Set this to 1 to help diagnose early startup problems
// when testing power-on with ble. Turn it off otherwise,
// as the latency of printing most of the debug info messes
Expand Down
2 changes: 1 addition & 1 deletion drivers/avr/ssd1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct CharacterMatrix {
bool dirty;
};

struct CharacterMatrix display;
extern struct CharacterMatrix display;

bool iota_gfx_init(void);
void iota_gfx_task(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/claw44/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "sendchar.h"
#include "timer.h"

struct CharacterMatrix display;

extern const unsigned char font[] PROGMEM;

// Set this to 1 to help diagnose early startup problems
Expand Down
2 changes: 1 addition & 1 deletion keyboards/claw44/ssd1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct CharacterMatrix {
bool dirty;
};

struct CharacterMatrix display;
extern struct CharacterMatrix display;

bool iota_gfx_init(bool rotate);
void iota_gfx_task(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/comet46/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "sendchar.h"
#include "timer.h"

struct CharacterMatrix display;

extern const unsigned char font[] PROGMEM;

// Set this to 1 to help diagnose early startup problems
Expand Down
2 changes: 1 addition & 1 deletion keyboards/comet46/ssd1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct CharacterMatrix {
bool dirty;
};

struct CharacterMatrix display;
extern struct CharacterMatrix display;

bool iota_gfx_init(bool rotate);
void iota_gfx_task(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/crkbd/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "sendchar.h"
#include "timer.h"

struct CharacterMatrix display;

extern const unsigned char font[] PROGMEM;

#ifndef OLED_BLANK_CHAR
Expand Down
2 changes: 1 addition & 1 deletion keyboards/crkbd/ssd1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct CharacterMatrix {
bool dirty;
};

struct CharacterMatrix display;
extern struct CharacterMatrix display;

bool iota_gfx_init(bool rotate);
void iota_gfx_task(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/helix/local_drivers/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "sendchar.h"
#include "timer.h"

struct CharacterMatrix display;

// Set this to 1 to help diagnose early startup problems
// when testing power-on with ble. Turn it off otherwise,
// as the latency of printing most of the debug info messes
Expand Down
2 changes: 1 addition & 1 deletion keyboards/helix/local_drivers/ssd1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct CharacterMatrix {
bool dirty;
};

struct CharacterMatrix display;
extern struct CharacterMatrix display;

bool iota_gfx_init(bool rotate);
void iota_gfx_task(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/yosino58/ssd1306.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "sendchar.h"
#include "timer.h"

struct CharacterMatrix display;

extern const unsigned char font[] PROGMEM;

// Set this to 1 to help diagnose early startup problems
Expand Down
2 changes: 1 addition & 1 deletion keyboards/yosino58/ssd1306.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct CharacterMatrix {
bool dirty;
};

struct CharacterMatrix display;
extern struct CharacterMatrix display;

bool iota_gfx_init(bool rotate);
void iota_gfx_task(void);
Expand Down

0 comments on commit e9b3a12

Please sign in to comment.