Skip to content

Commit f8a817e

Browse files
committed
pybricks/common: Guard colorlight and tools.
Some platforms may not have these.
1 parent 42f1aaf commit f8a817e

File tree

13 files changed

+18
-4
lines changed

13 files changed

+18
-4
lines changed

bricks/cityhub/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define PYBRICKS_PY_COMMON (1)
1515
#define PYBRICKS_PY_COMMON_BLE (1)
1616
#define PYBRICKS_PY_COMMON_CHARGER (0)
17+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1718
#define PYBRICKS_PY_COMMON_CONTROL (1)
1819
#define PYBRICKS_PY_COMMON_IMU (0)
1920
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/debug/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define PYBRICKS_PY_COMMON (1)
1414
#define PYBRICKS_PY_COMMON_BLE (0)
1515
#define PYBRICKS_PY_COMMON_CHARGER (0)
16+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1617
#define PYBRICKS_PY_COMMON_CONTROL (0)
1718
#define PYBRICKS_PY_COMMON_IMU (0)
1819
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/essentialhub/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#define PYBRICKS_PY_COMMON (1)
1616
#define PYBRICKS_PY_COMMON_BLE (1)
1717
#define PYBRICKS_PY_COMMON_CHARGER (1)
18+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1819
#define PYBRICKS_PY_COMMON_CONTROL (1)
1920
#define PYBRICKS_PY_COMMON_IMU (1)
2021
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/ev3dev/brickconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define PYBRICKS_PY_COMMON (1)
1919
#define PYBRICKS_PY_COMMON_BLE (0)
2020
#define PYBRICKS_PY_COMMON_CHARGER (0)
21+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
2122
#define PYBRICKS_PY_COMMON_CONTROL (1)
2223
#define PYBRICKS_PY_COMMON_IMU (0)
2324
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/ev3rt/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define PYBRICKS_PY_COMMON (1)
1919
#define PYBRICKS_PY_COMMON_BLE (0)
2020
#define PYBRICKS_PY_COMMON_CHARGER (0)
21+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (0)
2122
#define PYBRICKS_PY_COMMON_CONTROL (0)
2223
#define PYBRICKS_PY_COMMON_IMU (0)
2324
#define PYBRICKS_PY_COMMON_KEYPAD (0)

bricks/movehub/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define PYBRICKS_PY_COMMON (1)
1515
#define PYBRICKS_PY_COMMON_BLE (1)
1616
#define PYBRICKS_PY_COMMON_CHARGER (0)
17+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1718
#define PYBRICKS_PY_COMMON_CONTROL (0)
1819
#define PYBRICKS_PY_COMMON_IMU (0)
1920
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/nxt/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define PYBRICKS_PY_COMMON (1)
1717
#define PYBRICKS_PY_COMMON_BLE (0)
1818
#define PYBRICKS_PY_COMMON_CHARGER (0)
19+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1920
#define PYBRICKS_PY_COMMON_CONTROL (1)
2021
#define PYBRICKS_PY_COMMON_IMU (0)
2122
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/primehub/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define PYBRICKS_PY_COMMON (1)
1717
#define PYBRICKS_PY_COMMON_BLE (1)
1818
#define PYBRICKS_PY_COMMON_CHARGER (1)
19+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1920
#define PYBRICKS_PY_COMMON_CONTROL (1)
2021
#define PYBRICKS_PY_COMMON_IMU (1)
2122
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/technichub/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define PYBRICKS_PY_COMMON (1)
1515
#define PYBRICKS_PY_COMMON_BLE (1)
1616
#define PYBRICKS_PY_COMMON_CHARGER (0)
17+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1718
#define PYBRICKS_PY_COMMON_CONTROL (1)
1819
#define PYBRICKS_PY_COMMON_IMU (1)
1920
#define PYBRICKS_PY_COMMON_KEYPAD (1)

bricks/virtualhub/mpconfigvariant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define PYBRICKS_PY_COMMON (1)
1111
#define PYBRICKS_PY_COMMON_BLE (0)
1212
#define PYBRICKS_PY_COMMON_CHARGER (1)
13+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
1314
#define PYBRICKS_PY_COMMON_CONTROL (1)
1415
#define PYBRICKS_PY_COMMON_IMU (0)
1516
#define PYBRICKS_PY_COMMON_KEYPAD (1)

0 commit comments

Comments
 (0)