Skip to content

Add external Arduino MicroPython library. #14082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@
[submodule "lib/libmetal"]
path = lib/libmetal
url = https://github.com/OpenAMP/libmetal.git
[submodule "lib/arduino-lib"]
path = lib/arduino-lib
url = https://github.com/arduino/arduino-lib-mpy.git
1 change: 1 addition & 0 deletions lib/arduino-lib
Submodule arduino-lib added at 277efd
6 changes: 6 additions & 0 deletions ports/renesas-ra/boards/ARDUINO_PORTENTA_C33/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@

# Bluetooth
require("aioble")

# Register external library
add_library("arduino-lib", "$(ARDUINO_LIB_DIR)")

# CMWX1 Lora module.
require("cmwx1", library="arduino-lib")
3 changes: 3 additions & 0 deletions ports/renesas-ra/boards/ARDUINO_PORTENTA_C33/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ MICROPY_SSL_MBEDTLS = 1
MICROPY_PY_NETWORK = 1
MICROPY_PY_NETWORK_ESP_HOSTED = 1

ARDUINO_LIB_DIR = lib/arduino-lib
GIT_SUBMODULES += $(ARDUINO_LIB_DIR)
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
MICROPY_MANIFEST_ARDUINO_LIB_DIR = $(TOP)/$(ARDUINO_LIB_DIR)
MBEDTLS_CONFIG_FILE = '"$(BOARD_DIR)/mbedtls_config_board.h"'
6 changes: 6 additions & 0 deletions ports/stm32/boards/ARDUINO_GIGA/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@

# Bluetooth
require("aioble")

# Register external library
add_library("arduino-lib", "$(ARDUINO_LIB_DIR)")

# RPC
require("msgpackrpc", library="arduino-lib")
3 changes: 3 additions & 0 deletions ports/stm32/boards/ARDUINO_GIGA/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ MICROPY_SSL_MBEDTLS = 1
MICROPY_PY_OPENAMP = 1
MICROPY_PY_OPENAMP_REMOTEPROC = 1

ARDUINO_LIB_DIR = lib/arduino-lib
GIT_SUBMODULES += $(ARDUINO_LIB_DIR)
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
MICROPY_MANIFEST_ARDUINO_LIB_DIR = $(TOP)/$(ARDUINO_LIB_DIR)
MBEDTLS_CONFIG_FILE = '"$(BOARD_DIR)/mbedtls_config_board.h"'
6 changes: 6 additions & 0 deletions ports/stm32/boards/ARDUINO_NICLA_VISION/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@

# Bluetooth
require("aioble")

# Register external library
add_library("arduino-lib", "$(ARDUINO_LIB_DIR)")

# RPC
require("msgpackrpc", library="arduino-lib")
3 changes: 3 additions & 0 deletions ports/stm32/boards/ARDUINO_NICLA_VISION/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ MICROPY_SSL_MBEDTLS = 1
MICROPY_PY_OPENAMP = 1
MICROPY_PY_OPENAMP_REMOTEPROC = 1

ARDUINO_LIB_DIR = lib/arduino-lib
GIT_SUBMODULES += $(ARDUINO_LIB_DIR)
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
MICROPY_MANIFEST_ARDUINO_LIB_DIR = $(TOP)/$(ARDUINO_LIB_DIR)
MBEDTLS_CONFIG_FILE = '"$(BOARD_DIR)/mbedtls_config_board.h"'
7 changes: 7 additions & 0 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@

# Bluetooth
require("aioble")

# Register external library
add_library("arduino-lib", "$(ARDUINO_LIB_DIR)")

# RPC
require("cmwx1", library="arduino-lib")
require("msgpackrpc", library="arduino-lib")
3 changes: 3 additions & 0 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ MICROPY_SSL_MBEDTLS = 1
MICROPY_PY_OPENAMP = 1
MICROPY_PY_OPENAMP_REMOTEPROC = 1

ARDUINO_LIB_DIR = lib/arduino-lib
GIT_SUBMODULES += $(ARDUINO_LIB_DIR)
FROZEN_MANIFEST = $(BOARD_DIR)/manifest.py
MICROPY_MANIFEST_ARDUINO_LIB_DIR = $(TOP)/$(ARDUINO_LIB_DIR)
MBEDTLS_CONFIG_FILE = '"$(BOARD_DIR)/mbedtls_config_board.h"'
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy