Skip to content
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

feat: add nano rp2040 #27

Merged
merged 5 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ USER arduino

# Install Arduino CLI
RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh && \
/app/bin/arduino-cli core install arduino:avr arduino:esp32
/app/bin/arduino-cli core install arduino:avr arduino:esp32 arduino:mbed_nano
ENV ARDUINO_CLI_PATH=/app/bin/arduino-cli

COPY --chown=arduino:arduino requirements.txt /app/requirements.txt
Expand Down
6 changes: 1 addition & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ async def _compile_sketch(sketch: Sketch) -> dict[str, str]:
async with aiofiles.open(f"{sketch_path}{file[1]}", "rb") as _f:
file_result[file[0]] = await _f.read()

binary_files = [
("bootloader", ".bootloader.bin"),
("partitions", ".partitions.bin"),
("sketch", ".bin"),
]
binary_files = [("sketch", ".bin"), ("sketch", ".uf2")]
for file in binary_files:
if path.exists(f"{sketch_path}{file[1]}"):
async with aiofiles.open(f"{sketch_path}{file[1]}", "rb") as _f:
Expand Down
1 change: 1 addition & 0 deletions node_modules/@leaphy-robotics/dfu-util-wasm
sverben marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading