add EFF logo as an option

This commit is contained in:
Cooper Quintin
2024-06-14 14:15:41 -07:00
parent bf1bb37150
commit aa730f3c18
4 changed files with 6 additions and 0 deletions
+5
View File
@@ -136,6 +136,8 @@ async fn update_ui(task_tracker: &TaskTracker, config: &config::Config, mut ui_
let img;
if display_level == 2 {
img = IMAGE_DIR.get_file("orca.gif").unwrap().contents();
} else if display_level == 3{
img = IMAGE_DIR.get_file("eff.png").unwrap().contents();
} else {
img = &[];
}
@@ -156,6 +158,9 @@ async fn update_ui(task_tracker: &TaskTracker, config: &config::Config, mut ui_
2 => {
fb.draw_gif(img);
},
3 => {
fb.draw_img(img)
}
128 => {
fb.draw_line(framebuffer::Color565::Cyan, 128);
fb.draw_line(framebuffer::Color565::Pink, 102);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 88 KiB

+1
View File
@@ -6,4 +6,5 @@ readonly_mode = false
# 0 = invisible mode, no indicator that rayhunter is running
# 1 = Subtle mode, display a green line at the top of the screen when rayhunter is running
# 2 = Demo Mode, display a fun orca gif
# 3 = display the EFF logo
ui_level = 1