Skip to content

Commit a9788e4

Browse files
committed
lalala
1 parent 72f9cc1 commit a9788e4

26 files changed

+164
-451
lines changed

src/modm/driver/display/ili9341.lb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def prepare(module, options):
2626

2727
def build(env):
2828
env.outbasepath = "modm/src/modm/driver/display"
29+
env.copy("ili9341_defines.hpp")
2930
env.copy("ili9341.hpp")
30-
env.copy("ili9341_register.hpp")
3131
env.copy("ili9341_impl.hpp")
3232
env.copy("ili9341_interface_spi.hpp")
3333
env.copy("ili9341_interface_parallel.hpp")

src/modm/driver/display/ili9341_register.hpp renamed to src/modm/driver/display/ili9341_defines.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
*/
1111

1212
#pragma once
13+
#ifndef MODM_ILI9341_HPP
14+
#error "Don't include this file directly, use 'ili9341.hpp' instead!"
15+
#endif
1316

1417
#include <modm/math/utils/bit_constants.hpp>
1518

src/modm/driver/display/ili9341_impl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
1010
*/
1111

12+
#pragma once
1213
#ifndef MODM_ILI9341_HPP
1314
#error "Don't include this file directly, use 'ili9341.hpp' instead!"
1415
#endif

src/modm/driver/display/ili9341_interface_parallel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include <modm/math/utils/endianness.hpp>
1818

19-
#include "ili9341_register.hpp"
19+
#include "ili9341_defines.hpp"
2020

2121
namespace modm
2222
{

src/modm/driver/display/ili9341_interface_spi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <modm/platform/spi/spi_base.hpp>
1919
#include <modm/processing/resumable.hpp>
2020

21-
#include "ili9341_register.hpp"
21+
#include "ili9341_defines.hpp"
2222

2323
namespace modm
2424
{

src/modm/driver/display/sh1106.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
// ----------------------------------------------------------------------------
1111

12+
#pragma once
1213
#ifndef MODM_SH1106_HPP
1314
#define MODM_SH1106_HPP
1415

src/modm/driver/display/sh1106_impl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
// ----------------------------------------------------------------------------
1111

12+
#pragma once
1213
#ifndef MODM_SH1106_HPP
1314
#error "Don't include this file directly, use 'sh1106.hpp' instead!"
1415
#endif

src/modm/driver/display/ssd1306.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212
// ----------------------------------------------------------------------------
1313

14+
#pragma once
1415
#ifndef MODM_SSD1306_HPP
1516
#define MODM_SSD1306_HPP
1617

@@ -21,7 +22,7 @@
2122
#include <modm/ui/graphic/display.hpp>
2223
#include <modm/ui/graphic/buffer.hpp>
2324

24-
#include "ssd1306_register.hpp"
25+
#include "ssd1306_defines.hpp"
2526

2627
using namespace modm::graphic;
2728

src/modm/driver/display/ssd1306.lb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def prepare(module, options):
2424

2525
def build(env):
2626
env.outbasepath = "modm/src/modm/driver/display"
27+
env.copy("ssd1306_defines.hpp")
2728
env.copy("ssd1306.hpp")
2829
env.copy("ssd1306_impl.hpp")
29-
env.copy("ssd1306_register.hpp")
3030
env.copy("ssd1306_i2c_transaction_impl.cpp")

0 commit comments

Comments
 (0)