Skip to content

Commit

Permalink
bricks/ev3: Enable some modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Jun 8, 2024
1 parent ea806c2 commit 8378675
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 18 deletions.
37 changes: 20 additions & 17 deletions bricks/ev3/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,39 @@

#define PYBRICKS_HUB_NAME "ev3"
#define PYBRICKS_HUB_CLASS_NAME (MP_QSTR_EV3Brick)
#define PYBRICKS_HUB_EV3BRICK (0)
#define PYBRICKS_HUB_EV3BRICK (1)

// Pybricks modules
#define PYBRICKS_PY_COMMON (1)
#define PYBRICKS_PY_COMMON_BLE (0)
#define PYBRICKS_PY_COMMON_CHARGER (0)
#define PYBRICKS_PY_COMMON_CONTROL (0)
#define PYBRICKS_PY_COMMON_COLOR_LIGHT (1)
#define PYBRICKS_PY_COMMON_CONTROL (1)
#define PYBRICKS_PY_COMMON_IMU (0)
#define PYBRICKS_PY_COMMON_KEYPAD (0)
#define PYBRICKS_PY_COMMON_KEYPAD_HUB_BUTTONS (0)
#define PYBRICKS_PY_COMMON_KEYPAD (1)
#define PYBRICKS_PY_COMMON_KEYPAD_HUB_BUTTONS (6)
#define PYBRICKS_PY_COMMON_LIGHT_ARRAY (0)
#define PYBRICKS_PY_COMMON_LIGHT_MATRIX (0)
#define PYBRICKS_PY_COMMON_LOGGER (0)
#define PYBRICKS_PY_COMMON_MOTOR_MODEL (0)
#define PYBRICKS_PY_COMMON_MOTORS (0)
#define PYBRICKS_PY_COMMON_SYSTEM (0)
#define PYBRICKS_PY_COMMON_LOGGER (1)
#define PYBRICKS_PY_COMMON_MOTOR_MODEL (1)
#define PYBRICKS_PY_COMMON_MOTORS (1)
#define PYBRICKS_PY_COMMON_SPEAKER (1)
#define PYBRICKS_PY_COMMON_SYSTEM (1)
#define PYBRICKS_PY_EV3DEVICES (0)
#define PYBRICKS_PY_EXPERIMENTAL (0)
#define PYBRICKS_PY_HUBS (0)
#define PYBRICKS_PY_HUBS (1)
#define PYBRICKS_PY_IODEVICES (0)
#define PYBRICKS_PY_MEDIA (0)
#define PYBRICKS_PY_PARAMETERS (0)
#define PYBRICKS_PY_PARAMETERS_BUTTON (0)
#define PYBRICKS_PY_MEDIA_EV3DEV (0)
#define PYBRICKS_PY_NXTDEVICES (1)
#define PYBRICKS_PY_PARAMETERS (1)
#define PYBRICKS_PY_PARAMETERS_BUTTON (1)
#define PYBRICKS_PY_PARAMETERS_ICON (0)
#define PYBRICKS_PY_DEVICES (0)
#define PYBRICKS_PY_PUPDEVICES (0)
#define PYBRICKS_PY_ROBOTICS (0)
#define PYBRICKS_PY_ROBOTICS_EXTRA (0)
#define PYBRICKS_PY_DEVICES (1)
#define PYBRICKS_PY_ROBOTICS (1)
#define PYBRICKS_PY_ROBOTICS_DRIVEBASE_GYRO (0)
#define PYBRICKS_PY_ROBOTICS_DRIVEBASE_SPIKE (0)
#define PYBRICKS_PY_TOOLS (0)
#define PYBRICKS_PY_TOOLS (1)
#define PYBRICKS_PY_TOOLS_HUB_MENU (0)

// Pybricks options
Expand All @@ -45,7 +48,7 @@
#define PYBRICKS_OPT_TERSE_ERR (0)
#define PYBRICKS_OPT_EXTRA_MOD (1)
#define PYBRICKS_OPT_CUSTOM_IMPORT (1)
#define PYBRICKS_OPT_NATIVE_MOD (1)
#define PYBRICKS_OPT_NATIVE_MOD (0)

// Start with config shared by all Pybricks ports.
#include "../_common/mpconfigport.h"
Expand Down
21 changes: 20 additions & 1 deletion lib/pbio/platform/ev3/pbioconfig.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2019-2022 The Pybricks Authors
// Copyright (c) 2023-2024 The Pybricks Authors

#define PBIO_CONFIG_BATTERY (1)
#define PBIO_CONFIG_DCMOTOR (1)
#define PBIO_CONFIG_DCMOTOR_NUM_DEV (4)
#define PBIO_CONFIG_DRIVEBASE_SPIKE (0)
#define PBIO_CONFIG_IMU (0)
#define PBIO_CONFIG_LIGHT (0)
#define PBIO_CONFIG_LOGGER (1)
#define PBIO_CONFIG_MOTOR_PROCESS (1)
#define PBIO_CONFIG_SERVO (1)
#define PBIO_CONFIG_SERVO_NUM_DEV (4)
#define PBIO_CONFIG_SERVO_EV3_NXT (1)
#define PBIO_CONFIG_SERVO_PUP (0)
#define PBIO_CONFIG_SERVO_PUP_MOVE_HUB (0)
#define PBIO_CONFIG_TACHO (1)

#define PBIO_CONFIG_UARTDEV (0)
#define PBIO_CONFIG_UARTDEV_NUM_DEV (0)
#define PBIO_CONFIG_UARTDEV_FIRST_PORT PBIO_PORT_ID_1

#define PBIO_CONFIG_ENABLE_SYS (1)

0 comments on commit 8378675

Please sign in to comment.