Skip to content

Commit

Permalink
Fix custom charger animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Flohack74 committed Jan 7, 2022
1 parent 05a240d commit dfc046b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Binary file added charger/images/main_font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions charger/values/animation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# animation: num_cycles, first_frame_repeats, animation_file
animation: 5 1 charger/battery_scale

# fail: animation_file
fail: charger/battery_fail

# percent_display: text_percent_pos_x, text_percent_pos_y, color_b, color_g, color_r, color_a, font_file
percent_display: c c 255 255 255 255 charger/main_font

# frame: disp_time min_level max_level
frame: 750 0 19
frame: 750 0 39
frame: 750 0 59
frame: 750 0 79
frame: 750 80 95
frame: 750 0 100

6 changes: 6 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -699,3 +699,9 @@ PRODUCT_COPY_FILES += \

PRODUCT_COPY_FILES += \
device/google/wahoo/seccomp_policy/crash_dump.arm.policy:system/etc/seccomp_policy/crash_dump.arm.policy

PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/charger/images/battery_fail.png:$(TARGET_ROOT_OUT)/root/res/images/charger/battery_fail.png \
$(LOCAL_PATH)/charger/images/battery_scale.png:$(TARGET_ROOT_OUT)/root/res/images/charger/battery_scale.png \
$(LOCAL_PATH)/charger/images/main_font.png:$(TARGET_ROOT_OUT)/root/res/images/charger/main_font.png \
$(LOCAL_PATH)/charger/values/animation.txt:$(TARGET_ROOT_OUT)/root/res/values/charger/animation.txt

0 comments on commit dfc046b

Please sign in to comment.