Skip to content

Commit 4e5a130

Browse files
committed
Change header inclusion order
1 parent 2d6cf85 commit 4e5a130

File tree

8 files changed

+15
-20
lines changed

8 files changed

+15
-20
lines changed

src/boards/Inkplate10/Inkplate10Driver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#include "Inkplate10Driver.h"
2-
#include "Inkplate.h"
3-
41
// Header guard for the Arduino include
52
#ifdef ARDUINO_INKPLATE10V2
3+
#include "Inkplate10Driver.h"
4+
#include "Inkplate.h"
65

76
SPIClass spi2(2);
87
SdFat sd(&spi2);

src/boards/Inkplate5V2/Inkplate5V2Driver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#include "Inkplate5V2Driver.h"
2-
#include "Inkplate.h"
3-
41
// Header guard for the Arduino include
52
#ifdef ARDUINO_INKPLATE5V2
3+
#include "Inkplate5V2Driver.h"
4+
#include "Inkplate.h"
65

76
SPIClass spi2(2);
87
SdFat sd(&spi2);

src/boards/Inkplate5V2/Inkplate5V2Driver.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#ifndef __INKPLATE5V2DRIVER_H__
2-
#define __INKPLATE5V2DRIVER_H__
3-
41
// Header guard for the Arduino include
52
#ifdef ARDUINO_INKPLATE5V2
63

4+
#ifndef __INKPLATE5V2DRIVER_H__
5+
#define __INKPLATE5V2DRIVER_H__
6+
77
// Inkplate Board name.
88
#define INKPLATE_BOARD_NAME "Inkplate 5V2"
99

src/boards/Inkplate5V2/pins.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
// Header guard for the Arduino include
2+
#ifdef ARDUINO_INKPLATE5V2
13
#ifndef __INKPLATE5V2_PINS_H__
24
#define __INKPLATE5V2_PINS_H__
35
#include "soc/gpio_reg.h"
46
#include "soc/gpio_struct.h"
5-
// Header guard for the Arduino include
6-
#ifdef ARDUINO_INKPLATE5V2
77
#define IO_INT_ADDR 0x20
88

99
// Pin on the internal io expander which controls MOSFET for turning on and off the SD card

src/boards/Inkplate5V2/waveforms.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
#ifdef ARDUINO_INKPLATE5V2
12
#ifndef __WAVEFROMS_INKPLATE_5V2_H__
23
#define __WAVEFROMS_INKPLATE_5V2_H__
34

4-
#ifdef ARDUINO_INKPLATE5V2
5-
65
#define WAVEFORM3BIT \
76
{{0, 0, 1, 1, 2, 1, 1, 1, 0}, {1, 1, 2, 2, 1, 2, 1, 1, 0}, {0, 1, 2, 2, 1, 1, 2, 1, 0}, \
87
{0, 0, 1, 1, 1, 1, 1, 2, 0}, {1, 2, 1, 2, 1, 1, 1, 2, 0}, {0, 1, 1, 1, 2, 0, 1, 2, 0}, \

src/boards/Inkplate6/Inkplate6Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#include "Inkplate6Driver.h"
2-
#include "Inkplate.h"
31

42
#ifdef ARDUINO_INKPLATE6V2
3+
#include "Inkplate6Driver.h"
4+
#include "Inkplate.h"
55

66
SPIClass spi2(2);
77
SdFat sd(&spi2);

src/boards/Inkplate6COLOR/Inkplate6COLORDriver.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
#include "Inkplate6COLORDriver.h"
2-
#include "Inkplate.h"
3-
41
// Header guard for the Arduino include
52
#ifdef ARDUINO_INKPLATECOLOR
3+
#include "Inkplate6COLORDriver.h"
4+
#include "Inkplate.h"
65

76
SPIClass spi2(2);
87
SdFat sd(&spi2);

src/boards/Inkplate6FLICK/Inkplate6FLICKDriver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
#ifdef ARDUINO_INKPLATE6FLICK
12
#include "Inkplate6FLICKDriver.h"
23
#include "Inkplate.h"
34

4-
#ifdef ARDUINO_INKPLATE6FLICK
5-
65
SPIClass spi2(2);
76
SdFat sd(&spi2);
87

0 commit comments

Comments
 (0)