-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
82 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# | ||
# To Build: | ||
# docker build -t usbvalve/arduino-cli . | ||
# docker build -t usbvalve-pico1/arduino-cli -f Dockerfile.pico1 . | ||
# | ||
# To Run: | ||
# docker run --rm --name usbvalve -v $PWD:/mnt usbvalve/arduino-cli /mnt/USBvalve | ||
# docker run --rm --name usbvalve -v $PWD:/mnt usbvalve-pico1/arduino-cli /mnt/USBvalve | ||
# | ||
|
||
FROM ubuntu:22.04 | ||
|
@@ -23,17 +23,17 @@ RUN cd /app \ | |
&& ./install.sh \ | ||
&& export PATH=$PATH:/app/arduino-cli/bin \ | ||
&& arduino-cli --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json core search 2040 \ | ||
&& arduino-cli --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json core install rp2040:rp2040 \ | ||
&& arduino-cli lib install "Adafruit TinyUSB [email protected].0" \ | ||
&& arduino-cli lib install "Adafruit [email protected].12" \ | ||
&& arduino-cli --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json core install rp2040:rp2040@4.4.0 \ | ||
&& arduino-cli lib install "Adafruit TinyUSB [email protected].2" \ | ||
&& arduino-cli lib install "Adafruit [email protected].13" \ | ||
&& arduino-cli lib install "Pico PIO [email protected]" \ | ||
&& arduino-cli lib install "[email protected]" \ | ||
&& arduino-cli lib install "GFX Library for Arduino@1.4.9" | ||
&& arduino-cli lib install "GFX Library for Arduino@1.5.0" | ||
|
||
# Compilation setup | ||
RUN echo "#!/bin/bash" > /app/entrypoint.sh \ | ||
&& echo "export PATH=\$PATH:/app/arduino-cli/bin" >> /app/entrypoint.sh \ | ||
&& echo "arduino-cli compile --fqbn rp2040:rp2040:rpipico --board-options \"usbstack=tinyusb\" --board-options \"freq=120\" --output-dir \"/mnt/USBvalve_out\" \"\$1\"" >> /app/entrypoint.sh \ | ||
&& echo "arduino-cli compile --fqbn rp2040:rp2040:rpipico --build-property \"build.extra_flags=-DCFG_TUD_CDC=1\" --board-options \"usbstack=tinyusb\" --board-options \"freq=120\" --output-dir \"/mnt/USBvalve_out\" \"\$1\"" >> /app/entrypoint.sh \ | ||
&& chmod +x /app/entrypoint.sh | ||
|
||
ENTRYPOINT ["/app/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# To Build: | ||
# docker build -t usbvalve-pico2/arduino-cli -f Dockerfile.pico2 . | ||
# | ||
# To Run: | ||
# docker run --rm --name usbvalve -v $PWD:/mnt usbvalve-pico2/arduino-cli /mnt/USBvalve | ||
# | ||
|
||
FROM ubuntu:22.04 | ||
WORKDIR /app | ||
|
||
# OS setup | ||
RUN apt-get update -y \ | ||
&& apt-get install -y git wget python3 \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# arduino-cli setup | ||
RUN cd /app \ | ||
&& git clone --recursive https://github.com/arduino/arduino-cli.git \ | ||
&& cd arduino-cli \ | ||
&& ./install.sh \ | ||
&& export PATH=$PATH:/app/arduino-cli/bin \ | ||
&& arduino-cli --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json core search 2040 \ | ||
&& arduino-cli --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json core install rp2040:[email protected] \ | ||
&& arduino-cli lib install "Adafruit TinyUSB [email protected]" \ | ||
&& arduino-cli lib install "Adafruit [email protected]" \ | ||
&& arduino-cli lib install "Pico PIO [email protected]" \ | ||
&& arduino-cli lib install "[email protected]" \ | ||
&& arduino-cli lib install "GFX Library for [email protected]" | ||
|
||
# Compilation setup | ||
RUN echo "#!/bin/bash" > /app/entrypoint.sh \ | ||
&& echo "export PATH=\$PATH:/app/arduino-cli/bin" >> /app/entrypoint.sh \ | ||
&& echo "arduino-cli compile --fqbn rp2040:rp2040:rpipico2 --build-property \"build.extra_flags=-DCFG_TUD_CDC=1\" --board-options \"usbstack=tinyusb\" --board-options \"freq=120\" --output-dir \"/mnt/USBvalve_out\" \"\$1\"" >> /app/entrypoint.sh \ | ||
&& chmod +x /app/entrypoint.sh | ||
|
||
ENTRYPOINT ["/app/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+586 KB
firmware/USBvalve-0.19.1-32.uf2 → firmware/USBvalve-0.20.0-32-pico1.uf2
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+586 KB
firmware/USBvalve-0.19.1-64.uf2 → firmware/USBvalve-0.20.0-64-pico1.uf2
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+775 KB
firmware/USBvalve-0.19.1-PIWATCH.uf2 → firmware/USBvalve-0.20.0-PIWATCH.uf2
Binary file not shown.