Skip to content

Commit

Permalink
add powermgm to twatch2021, use compessed images
Browse files Browse the repository at this point in the history
  • Loading branch information
sharandac committed Jul 1, 2022
1 parent 17ed57c commit 709ed0c
Show file tree
Hide file tree
Showing 266 changed files with 124,238 additions and 87,366 deletions.
Binary file modified images/Hedge Icons/app/osmand/images/ahead_128px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion images/Hedge Icons/app/scale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ do
FILE=${CNAME##*/}
RESOLUTION=`echo $FILE | cut -d"_" -f2 | cut -d"p" -f1`
echo "$LINE -> $CNAME.c ($FILE) RESOLUTIOIN=$RESOLUTION"
curl POST -F img_file=@$LINE -F name=$FILE -F cf=true_color_alpha -F format=c_array -F submit=Convert https://lvgl.io/tools/img_conv_core.php > .$CNAME.c
php ../../lv_utils/img_conv_core.php "name=$FILE&img=$LINE&cf=raw_alpha&format=c_array"
mv $FILE.c .$CNAME.c
# curl POST -F img_file=@$LINE -F name=$FILE -F cf=raw_alpha -F format=c_array -F submit=Convert https://lvgl.io/tools/img_conv_core.php > .$CNAME.c
# sed -i "s/.h = ,/.h = $RESOLUTION,/g" .$CNAME.c
# sed -i "s/.w = ,/.w = $RESOLUTION,/g" .$CNAME.c
Expand Down
3,325 changes: 3,325 additions & 0 deletions images/Hedge Icons/gui/images/bg1_240px.c

Large diffs are not rendered by default.

4,412 changes: 4,412 additions & 0 deletions images/Hedge Icons/gui/images/bg1_320px.c

Large diffs are not rendered by default.

6,118 changes: 6,118 additions & 0 deletions images/Hedge Icons/gui/images/bg1_540px.c

Large diffs are not rendered by default.

2,904 changes: 2,904 additions & 0 deletions images/Hedge Icons/gui/images/bg2_240px.c

Large diffs are not rendered by default.

3,864 changes: 3,864 additions & 0 deletions images/Hedge Icons/gui/images/bg2_320px.c

Large diffs are not rendered by default.

5,579 changes: 5,579 additions & 0 deletions images/Hedge Icons/gui/images/bg2_540px.c

Large diffs are not rendered by default.

2,001 changes: 2,001 additions & 0 deletions images/Hedge Icons/gui/images/bg3_240px.c

Large diffs are not rendered by default.

2,406 changes: 2,406 additions & 0 deletions images/Hedge Icons/gui/images/bg3_320px.c

Large diffs are not rendered by default.

4,746 changes: 4,746 additions & 0 deletions images/Hedge Icons/gui/images/bg3_540px.c

Large diffs are not rendered by default.

2,645 changes: 2,645 additions & 0 deletions images/Hedge Icons/gui/images/bg_240px.c

Large diffs are not rendered by default.

3,580 changes: 3,580 additions & 0 deletions images/Hedge Icons/gui/images/bg_320px.c

Large diffs are not rendered by default.

4,502 changes: 4,502 additions & 0 deletions images/Hedge Icons/gui/images/bg_540px.c

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions images/Hedge Icons/gui/images/png-list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
./bg3_540px.png
./bg1_240px.png
./bg_540px.png
./bg2_240px.png
./rounddisplaymask_240px.png
./bg_240px.png
./bg1_540px.png
./bg_320px.png
./bg2_540px.png
./bg1_320px.png
./bg3_240px.png
./bg2_320px.png
./bg3_320px.png
13 changes: 13 additions & 0 deletions images/Hedge Icons/gui/images/pxc-list.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
./bg3_540px.c
./bg1_320px.c
./bg2_540px.c
./bg_540px.c
./bg1_540px.c
./rounddisplaymask_240px.c
./bg_320px.c
./bg3_320px.c
./bg1_240px.c
./bg_240px.c
./bg3_240px.c
./bg2_320px.c
./bg2_240px.c
285 changes: 285 additions & 0 deletions images/Hedge Icons/gui/images/rounddisplaymask_240px.c

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions images/Hedge Icons/gui/images/scale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ do
RESOLUTION=`echo $FILE | cut -d"_" -f2 | cut -d"p" -f1`
echo "$LINE -> $CNAME.c ($FILE) RESOLUTIOIN=$RESOLUTION"
php ../../../lv_utils/img_conv_core.php "name=$FILE&img=$LINE&cf=raw_alpha&format=c_array"
# mv $FILE.c .$CNAME.c
echo "cp $FILE.c $CNAME.c"
# curl POST -F img_file=@$LINE -F name=$FILE -F cf=true_color_alpha -F format=c_array -F submit=Convert https://lvgl.io/tools/img_conv_core.php > .$CNAME.c
# curl POST -F img_file=@$LINE -F name=$FILE -F cf=raw_alpha -F format=c_array -F submit=Convert https://lvgl.io/tools/img_conv_core.php > .$CNAME.c
sed -i "s/.h = ,/.h = $RESOLUTION,/g" .$CNAME.c
sed -i "s/.w = ,/.w = 240,/g" .$CNAME.c
# sed -i "s/.h = ,/.h = $RESOLUTION,/g" .$CNAME.c
# sed -i "s/.w = ,/.w = 240,/g" .$CNAME.c
done < png-list.txt
#
# get a list of png file with *"96px.png"
Expand Down
18 changes: 5 additions & 13 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ lib_deps =
PubSubClient@>=2.8
https://github.com/mobizt/ESP-Mail-Client
mikalhart/TinyGPSPlus
t-vk/ESP32 BLE Keyboard @ ^0.3.2
h2zero/NimBLE-Arduino @ ^1.3.8

[env:m5core2]
Expand Down Expand Up @@ -249,12 +248,15 @@ lib_deps =
PubSubClient@>=2.8
mikalhart/TinyGPSPlus
https://github.com/mobizt/ESP-Mail-Client
t-vk/ESP32 BLE Keyboard @ ^0.3.2
h2zero/NimBLE-Arduino @ ^1.3.8


[env:t-watch2021]
platform = https://github.com/Jason2866/platform-espressif32.git
; overrides the default arduino-esp32 framework with an custom built arduino-esp32 framework
; the custom arduino-esp32 framework provides better power managment, dynamic frquency scaling and 80Mhz Flash/SPIRAM support
; built from https://github.com/Jason2866/esp32-arduino-lib-builder
platform_packages = framework-arduinoespressif32 @ https://github.com/sharandac/arduino-esp32-hedge-ng
platform = espressif32@4.4.0
board = esp32dev
framework = arduino
lib_archive = true
Expand Down Expand Up @@ -331,8 +333,6 @@ board_build.embed_txtfiles =
build_src_filter =
+<*>
lib_deps =
; TTGO TWatch Library@=1.4.2
; https://github.com/lvgl/lvgl.git#v7.7.2
https://github.com/dervomsee/TTGO_TWatch_Library/archive/refs/heads/lvgl_update.zip
https://github.com/lvgl/lvgl.git#v7.11.0
ESP Async WebServer@>=1.2.0
Expand All @@ -347,7 +347,6 @@ lib_deps =
https://github.com/tobozo/ESP32-targz/archive/refs/heads/1.0.5-beta.zip
https://github.com/mobizt/ESP-Mail-Client
https://github.com/pschatzmann/ESP32-A2DP
t-vk/ESP32 BLE Keyboard @ ^0.3.2
mikalhart/TinyGPSPlus
h2zero/NimBLE-Arduino @ ^1.3.8
build_type = release
Expand Down Expand Up @@ -382,8 +381,6 @@ board_build.embed_txtfiles =
build_src_filter =
+<*>
lib_deps =
; TTGO TWatch Library@=1.4.2
; https://github.com/lvgl/lvgl.git#v7.7.2
https://github.com/dervomsee/TTGO_TWatch_Library/archive/refs/heads/lvgl_update.zip
https://github.com/lvgl/lvgl.git#v7.11.0
ESP Async WebServer@>=1.2.0
Expand All @@ -397,7 +394,6 @@ lib_deps =
https://github.com/mobizt/ESP-Mail-Client
mikalhart/TinyGPSPlus
https://github.com/pschatzmann/ESP32-A2DP
t-vk/ESP32 BLE Keyboard @ ^0.3.2
h2zero/NimBLE-Arduino @ ^1.3.8
build_type = release
build_flags =
Expand Down Expand Up @@ -431,8 +427,6 @@ board_build.embed_txtfiles =
build_src_filter =
+<*>
lib_deps =
; TTGO TWatch Library@=1.4.2
; https://github.com/lvgl/lvgl.git#v7.7.2
https://github.com/dervomsee/TTGO_TWatch_Library/archive/refs/heads/lvgl_update.zip
https://github.com/lvgl/lvgl.git#v7.11.0
ESP Async WebServer@>=1.2.0
Expand All @@ -448,9 +442,7 @@ lib_deps =
https://github.com/mobizt/ESP-Mail-Client
mikalhart/TinyGPSPlus
https://github.com/pschatzmann/ESP32-A2DP
t-vk/ESP32 BLE Keyboard @ ^0.3.2
h2zero/NimBLE-Arduino @ ^1.3.8

build_type = release
build_flags =
-DCORE_DEBUG_LEVEL=3
Expand Down
Loading

0 comments on commit 709ed0c

Please sign in to comment.