Skip to content

Commit 0813e6b

Browse files
Remove unneeded #include, consistentify table indentation
1 parent d30d35e commit 0813e6b

16 files changed

+98
-82
lines changed

src/panels/ThinkInk_154_Grayscale4_T8.h

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
#ifndef _THINKINK_154_GRAYSCALE4_T8_H
22
#define _THINKINK_154_GRAYSCALE4_T8_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
// clang-format off
78

89
static const uint8_t ti_154t8_gray4_init_code[] {
910
IL0373_POWER_SETTING, 5, 0x03, 0x00, 0x2b, 0x2b, 0x13,
10-
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
11-
IL0373_POWER_ON, 0,
12-
0xFF, 200,
13-
IL0373_PANEL_SETTING, 1, 0x3F,
14-
IL0373_PLL, 1, 0x3C,
15-
IL0373_VCM_DC_SETTING, 1, 0x12,
16-
IL0373_CDI, 1, 0x97,
17-
0xFE // EOM
11+
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
12+
IL0373_POWER_ON, 0,
13+
0xFF, 200,
14+
IL0373_PANEL_SETTING, 1, 0x3F,
15+
IL0373_PLL, 1, 0x3C,
16+
IL0373_VCM_DC_SETTING, 1, 0x12,
17+
IL0373_CDI, 1, 0x97,
18+
0xFE // EOM
1819
};
1920

2021
static const uint8_t ti_154t8_monopart_init_code[] {
2122
IL0373_POWER_SETTING, 5, 0x03, 0x00, 0x2b, 0x2b, 0x03,
22-
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
23-
IL0373_POWER_ON, 0,
24-
0xFF, 200,
25-
IL0373_PANEL_SETTING, 2, 0xbF, 0x0d,
26-
IL0373_PLL, 1, 0x3C,
27-
IL0373_VCM_DC_SETTING, 1, 0x12,
28-
IL0373_CDI, 1, 0x47,
29-
0xFE // EOM
23+
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
24+
IL0373_POWER_ON, 0,
25+
0xFF, 200,
26+
IL0373_PANEL_SETTING, 2, 0xbF, 0x0d,
27+
IL0373_PLL, 1, 0x3C,
28+
IL0373_VCM_DC_SETTING, 1, 0x12,
29+
IL0373_CDI, 1, 0x47,
30+
0xFE // EOM
3031
};
3132

3233
static const uint8_t ti_154t8_monofull_init_code[] {
33-
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
34-
IL0373_POWER_ON, 0,
35-
0xFF, 200,
36-
IL0373_PANEL_SETTING, 2, 0x1f, 0x0d,
37-
IL0373_CDI, 1, 0x97,
38-
0xFE // EOM
34+
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
35+
IL0373_POWER_ON, 0,
36+
0xFF, 200,
37+
IL0373_PANEL_SETTING, 2, 0x1f, 0x0d,
38+
IL0373_CDI, 1, 0x97,
39+
0xFE // EOM
3940
};
4041

4142
static const uint8_t ti_154t8_monopart_lut_code[] = {

src/panels/ThinkInk_154_Mono_D27.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_154_MONO_D27_H
22
#define _THINKINK_154_MONO_D27_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_154_Mono_D27 : public Adafruit_SSD1608 {
78
public:

src/panels/ThinkInk_154_Mono_D67.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_154_MONO_D67_H
22
#define _THINKINK_154_MONO_D67_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_154_Mono_D67 : public Adafruit_SSD1681 {
78
public:

src/panels/ThinkInk_154_Tricolor_RW.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_154_TRICOLOR_RW_H
22
#define _THINKINK_154_TRICOLOR_RW_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_154_Tricolor_RW : public Adafruit_SSD1680 {
78
public:

src/panels/ThinkInk_154_Tricolor_Z17.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_154_TRICOLOR_Z17_H
22
#define _THINKINK_154_TRICOLOR_Z17_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_154_Tricolor_Z17 : public Adafruit_IL0373 {
78
public:

src/panels/ThinkInk_213_Grayscale4_T5.h

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
#ifndef _THINKINK_213_GRAYSCALE4_T5_H
22
#define _THINKINK_213_GRAYSCALE4_T5_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
// clang-format off
78

89
static const uint8_t ti_213t5_gray4_init_code[] {
910
IL0373_POWER_SETTING, 5, 0x03, 0x00, 0x2b, 0x2b, 0x13,
10-
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
11-
IL0373_POWER_ON, 0,
12-
0xFF, 200,
13-
IL0373_PANEL_SETTING, 1, 0x3F,
14-
IL0373_PLL, 1, 0x3C,
15-
IL0373_VCM_DC_SETTING, 1, 0x12,
16-
IL0373_CDI, 1, 0x97,
17-
0xFE // EOM
11+
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
12+
IL0373_POWER_ON, 0,
13+
0xFF, 200,
14+
IL0373_PANEL_SETTING, 1, 0x3F,
15+
IL0373_PLL, 1, 0x3C,
16+
IL0373_VCM_DC_SETTING, 1, 0x12,
17+
IL0373_CDI, 1, 0x97,
18+
0xFE // EOM
1819
};
1920

2021
static const uint8_t ti_213t5_monopart_init_code[] {
2122
IL0373_POWER_SETTING, 5, 0x03, 0x00, 0x2b, 0x2b, 0x03,
22-
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
23-
IL0373_POWER_ON, 0,
24-
0xFF, 200,
25-
IL0373_PANEL_SETTING, 2, 0xbF, 0x0d,
26-
IL0373_PLL, 1, 0x3C,
27-
IL0373_VCM_DC_SETTING, 1, 0x12,
28-
IL0373_CDI, 1, 0x47,
29-
0xFE // EOM
23+
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
24+
IL0373_POWER_ON, 0,
25+
0xFF, 200,
26+
IL0373_PANEL_SETTING, 2, 0xbF, 0x0d,
27+
IL0373_PLL, 1, 0x3C,
28+
IL0373_VCM_DC_SETTING, 1, 0x12,
29+
IL0373_CDI, 1, 0x47,
30+
0xFE // EOM
3031
};
3132

3233
static const uint8_t ti_213t5_monofull_init_code[] {
33-
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
34-
IL0373_POWER_ON, 0,
35-
0xFF, 200,
36-
IL0373_PANEL_SETTING, 2, 0x1f, 0x0d,
37-
IL0373_CDI, 1, 0x97,
38-
0xFE // EOM
34+
IL0373_BOOSTER_SOFT_START, 3, 0x17, 0x17, 0x17,
35+
IL0373_POWER_ON, 0,
36+
0xFF, 200,
37+
IL0373_PANEL_SETTING, 2, 0x1f, 0x0d,
38+
IL0373_CDI, 1, 0x97,
39+
0xFE // EOM
3940
};
4041

4142
static const uint8_t ti_213t5_monopart_lut_code[] = {

src/panels/ThinkInk_213_Mono_B72.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_213_MONO_B72_H
22
#define _THINKINK_213_MONO_B72_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_213_Mono_B72 : public Adafruit_SSD1675 {
78
public:

src/panels/ThinkInk_213_Mono_B73.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_213_MONO_B73_H
22
#define _THINKINK_213_MONO_B73_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_213_Mono_B73 : public Adafruit_SSD1675B {
78
public:

src/panels/ThinkInk_213_Mono_BN.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_213_MONO_BN_H
22
#define _THINKINK_213_MONO_BN_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_213_Mono_BN : public Adafruit_SSD1680 {
78
public:

src/panels/ThinkInk_213_Tricolor_RW.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#ifndef _THINKINK_213_TRICOLOR_RW_H
22
#define _THINKINK_213_TRICOLOR_RW_H
33

4-
#include "Adafruit_ThinkInk.h" // Includes EPD header, ink mode enum
4+
// This file is #included by Adafruit_ThinkInk.h and does not need to
5+
// #include anything else to pick up the EPD header or ink mode enum.
56

67
class ThinkInk_213_Tricolor_RW : public Adafruit_SSD1680 {
78
public:

0 commit comments

Comments
 (0)