From 2423eadd0b6fd0eb4d92c8ddd0f605a6b1075b09 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Tue, 21 Jun 2022 16:54:16 +0530 Subject: some progress --- circuitpython/Dockerfile | 2 +- circuitpython/build.sh | 2 ++ circuitpython/firmware.uf2 | Bin 1532928 -> 0 bytes circuitpython/frozen/compromyse/compromyse.py | 0 circuitpython/supervisor/shared/filesystem.c | 2 +- 5 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 circuitpython/firmware.uf2 delete mode 100644 circuitpython/frozen/compromyse/compromyse.py (limited to 'circuitpython') diff --git a/circuitpython/Dockerfile b/circuitpython/Dockerfile index 496706a..127a3db 100644 --- a/circuitpython/Dockerfile +++ b/circuitpython/Dockerfile @@ -8,4 +8,4 @@ RUN apt-get install python3 python3-pip git gettext build-essential mtools gcc-a RUN pip3 install --upgrade -r requirements-dev.txt RUN make -C mpy-cross -# ENTRYPOINT ["bash", "build.sh"] +ENTRYPOINT [ "./build.sh" ] \ No newline at end of file diff --git a/circuitpython/build.sh b/circuitpython/build.sh index 46908ae..c303149 100755 --- a/circuitpython/build.sh +++ b/circuitpython/build.sh @@ -1,6 +1,8 @@ #!/bin/bash a=$PWD +cp /mounted/code.py $a/frozen/compromyse/picoducky.py + cd $a/ports/raspberrypi/ make BOARD=raspberry_pi_pico -j4 diff --git a/circuitpython/firmware.uf2 b/circuitpython/firmware.uf2 deleted file mode 100644 index 502ed1d..0000000 Binary files a/circuitpython/firmware.uf2 and /dev/null differ diff --git a/circuitpython/frozen/compromyse/compromyse.py b/circuitpython/frozen/compromyse/compromyse.py deleted file mode 100644 index e69de29..0000000 diff --git a/circuitpython/supervisor/shared/filesystem.c b/circuitpython/supervisor/shared/filesystem.c index 820dbe9..5a22a4b 100644 --- a/circuitpython/supervisor/shared/filesystem.c +++ b/circuitpython/supervisor/shared/filesystem.c @@ -74,7 +74,7 @@ static void make_sample_code_file(FATFS *fatfs) { #if CIRCUITPY_FULL_BUILD FIL fs; UINT char_written = 0; - const byte buffer[] = "print(\"Hello World!\")\n"; + const byte buffer[] = "import picoducky\nmain()\n"; // Create or modify existing code.py file f_open(fatfs, &fs, "/code.py", FA_WRITE | FA_CREATE_ALWAYS); f_write(&fs, buffer, sizeof(buffer) - 1, &char_written); -- cgit v1.2.3