aboutsummaryrefslogtreecommitdiff
path: root/circuitpython
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2022-06-21 16:54:16 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2022-06-21 16:54:16 +0530
commit2423eadd0b6fd0eb4d92c8ddd0f605a6b1075b09 (patch)
tree1544be2201b285f553f8ee18a613adcfd709c32e /circuitpython
parent4fd287655a72b9aea14cdac715ad5b90ed082ed2 (diff)
some progressV1.0
Diffstat (limited to 'circuitpython')
-rw-r--r--circuitpython/Dockerfile2
-rwxr-xr-xcircuitpython/build.sh2
-rw-r--r--circuitpython/firmware.uf2bin1532928 -> 0 bytes
-rw-r--r--circuitpython/frozen/compromyse/compromyse.py0
-rw-r--r--circuitpython/supervisor/shared/filesystem.c2
5 files changed, 4 insertions, 2 deletions
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
--- a/circuitpython/firmware.uf2
+++ /dev/null
Binary files differ
diff --git a/circuitpython/frozen/compromyse/compromyse.py b/circuitpython/frozen/compromyse/compromyse.py
deleted file mode 100644
index e69de29..0000000
--- a/circuitpython/frozen/compromyse/compromyse.py
+++ /dev/null
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);