|
1 | 1 | pkill -f"python.*mpremote" |
2 | 2 |
|
3 | | -appname="$1" |
| 3 | +target="$1" |
| 4 | +appname="$2" |
4 | 5 |
|
5 | | -if [-z"$appname" ];then |
6 | | -echo"Usage:$0 [appname]" |
| 6 | +if [-z"$target"-o-z"$appname" ];then |
| 7 | +echo"Usage:$0 [target] [appname]" |
7 | 8 | echo"Example:$0" |
8 | | -echo"Example:$0 launcher" |
9 | | -echo"Example:$0 wificonf" |
10 | | -echo"Example:$0 appstore" |
| 9 | +echo"Example:$0 fri3d-2024 wifi" |
| 10 | +echo"Example:$0 fri3d-2024 appstore" |
| 11 | +echo"Example:$0 waveshare-esp32-s3-touch-lcd-2 launcher" |
| 12 | +echo"Example:$0 waveshare-esp32-s3-touch-lcd-2 imu" |
11 | 13 | sleep 2 |
12 | 14 | fi |
13 | 15 |
|
| 16 | + |
| 17 | + |
14 | 18 | mpremote=~/projects/MicroPythonOS/lvgl_micropython/lib/micropython/tools/mpremote/mpremote.py |
15 | 19 |
|
16 | 20 | pushd internal_filesystem/ |
@@ -39,8 +43,11 @@ if [ ! -z "$appname" ]; then |
39 | 43 | fi |
40 | 44 |
|
41 | 45 |
|
42 | | -#$mpremote fs cp boot.py :/boot.py |
43 | | -$mpremote fs cp boot_fri3d-2024.py :/boot.py |
| 46 | +if [-z"$target"-o"$target"=="waveshare-esp32-s3-touch-lcd-2" ];then |
| 47 | +$mpremote fs cp boot.py :/boot.py |
| 48 | +else |
| 49 | +$mpremote fs cp boot_"$target".py :/boot.py |
| 50 | +fi |
44 | 51 | $mpremote fs cp main.py :/main.py |
45 | 52 |
|
46 | 53 | #$mpremote fs cp main.py :/system/button.py |
|