Skip to content

Commit

Permalink
feat: add nano rp2040 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben authored Mar 22, 2024
1 parent ef5e73e commit 7c1615b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
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

0 comments on commit 7c1615b

Please sign in to comment.