Skip to content

Commit 8378675

Browse files
committed
bricks/ev3: Enable some modules.
1 parent ea806c2 commit 8378675

2 files changed

Lines changed: 40 additions & 18 deletions

File tree

bricks/ev3/mpconfigport.h

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,39 @@
77

88
#define PYBRICKS_HUB_NAME "ev3"
99
#define PYBRICKS_HUB_CLASS_NAME (MP_QSTR_EV3Brick)
10-
#define PYBRICKS_HUB_EV3BRICK (0)
10+
#define PYBRICKS_HUB_EV3BRICK (1)
1111

1212
// Pybricks modules
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_CONTROL (0)
16+
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
17+
#define PYBRICKS_PY_COMMON_CONTROL (1)
1718
#define PYBRICKS_PY_COMMON_IMU (0)
18-
#define PYBRICKS_PY_COMMON_KEYPAD (0)
19-
#define PYBRICKS_PY_COMMON_KEYPAD_HUB_BUTTONS (0)
19+
#define PYBRICKS_PY_COMMON_KEYPAD (1)
20+
#define PYBRICKS_PY_COMMON_KEYPAD_HUB_BUTTONS (6)
2021
#define PYBRICKS_PY_COMMON_LIGHT_ARRAY (0)
2122
#define PYBRICKS_PY_COMMON_LIGHT_MATRIX (0)
22-
#define PYBRICKS_PY_COMMON_LOGGER (0)
23-
#define PYBRICKS_PY_COMMON_MOTOR_MODEL (0)
24-
#define PYBRICKS_PY_COMMON_MOTORS (0)
25-
#define PYBRICKS_PY_COMMON_SYSTEM (0)
23+
#define PYBRICKS_PY_COMMON_LOGGER (1)
24+
#define PYBRICKS_PY_COMMON_MOTOR_MODEL (1)
25+
#define PYBRICKS_PY_COMMON_MOTORS (1)
26+
#define PYBRICKS_PY_COMMON_SPEAKER (1)
27+
#define PYBRICKS_PY_COMMON_SYSTEM (1)
28+
#define PYBRICKS_PY_EV3DEVICES (0)
2629
#define PYBRICKS_PY_EXPERIMENTAL (0)
27-
#define PYBRICKS_PY_HUBS (0)
30+
#define PYBRICKS_PY_HUBS (1)
2831
#define PYBRICKS_PY_IODEVICES (0)
2932
#define PYBRICKS_PY_MEDIA (0)
30-
#define PYBRICKS_PY_PARAMETERS (0)
31-
#define PYBRICKS_PY_PARAMETERS_BUTTON (0)
33+
#define PYBRICKS_PY_MEDIA_EV3DEV (0)
34+
#define PYBRICKS_PY_NXTDEVICES (1)
35+
#define PYBRICKS_PY_PARAMETERS (1)
36+
#define PYBRICKS_PY_PARAMETERS_BUTTON (1)
3237
#define PYBRICKS_PY_PARAMETERS_ICON (0)
33-
#define PYBRICKS_PY_DEVICES (0)
34-
#define PYBRICKS_PY_PUPDEVICES (0)
35-
#define PYBRICKS_PY_ROBOTICS (0)
36-
#define PYBRICKS_PY_ROBOTICS_EXTRA (0)
38+
#define PYBRICKS_PY_DEVICES (1)
39+
#define PYBRICKS_PY_ROBOTICS (1)
3740
#define PYBRICKS_PY_ROBOTICS_DRIVEBASE_GYRO (0)
3841
#define PYBRICKS_PY_ROBOTICS_DRIVEBASE_SPIKE (0)
39-
#define PYBRICKS_PY_TOOLS (0)
42+
#define PYBRICKS_PY_TOOLS (1)
4043
#define PYBRICKS_PY_TOOLS_HUB_MENU (0)
4144

4245
// Pybricks options
@@ -45,7 +48,7 @@
4548
#define PYBRICKS_OPT_TERSE_ERR (0)
4649
#define PYBRICKS_OPT_EXTRA_MOD (1)
4750
#define PYBRICKS_OPT_CUSTOM_IMPORT (1)
48-
#define PYBRICKS_OPT_NATIVE_MOD (1)
51+
#define PYBRICKS_OPT_NATIVE_MOD (0)
4952

5053
// Start with config shared by all Pybricks ports.
5154
#include "../_common/mpconfigport.h"

lib/pbio/platform/ev3/pbioconfig.h

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
// SPDX-License-Identifier: MIT
2-
// Copyright (c) 2019-2022 The Pybricks Authors
2+
// Copyright (c) 2023-2024 The Pybricks Authors
3+
4+
#define PBIO_CONFIG_BATTERY (1)
5+
#define PBIO_CONFIG_DCMOTOR (1)
6+
#define PBIO_CONFIG_DCMOTOR_NUM_DEV (4)
7+
#define PBIO_CONFIG_DRIVEBASE_SPIKE (0)
8+
#define PBIO_CONFIG_IMU (0)
9+
#define PBIO_CONFIG_LIGHT (0)
10+
#define PBIO_CONFIG_LOGGER (1)
11+
#define PBIO_CONFIG_MOTOR_PROCESS (1)
12+
#define PBIO_CONFIG_SERVO (1)
13+
#define PBIO_CONFIG_SERVO_NUM_DEV (4)
14+
#define PBIO_CONFIG_SERVO_EV3_NXT (1)
15+
#define PBIO_CONFIG_SERVO_PUP (0)
16+
#define PBIO_CONFIG_SERVO_PUP_MOVE_HUB (0)
17+
#define PBIO_CONFIG_TACHO (1)
18+
19+
#define PBIO_CONFIG_UARTDEV (0)
20+
#define PBIO_CONFIG_UARTDEV_NUM_DEV (0)
21+
#define PBIO_CONFIG_UARTDEV_FIRST_PORT PBIO_PORT_ID_1
322

423
#define PBIO_CONFIG_ENABLE_SYS (1)

0 commit comments

Comments
 (0)