implements PLN-0100

This commit is contained in:
2026-06-15 05:46:28 +01:00
parent a268bd0b75
commit 18cfeedbff
8 changed files with 62 additions and 16 deletions
@@ -3,7 +3,10 @@ use crate::firmware::prometeu_context::PrometeuContext;
use prometeu_hal::color::Color;
use prometeu_hal::log::{LogLevel, LogSource};
use prometeu_hal::primitives::Rect;
use prometeu_hal::{FrameId, GfxUiCommand, RenderSubmission, ShellUiFramePacket};
use prometeu_hal::{
FrameId, GfxUiCommand, LegacyHardwareRenderSubmissionSink, RenderSubmission,
RenderSubmissionSink, ShellUiFramePacket,
};
#[derive(Debug, Clone)]
pub struct SplashScreenStep {
@@ -44,7 +47,9 @@ impl SplashScreenStep {
color: Color::WHITE,
},
]);
ctx.hw.publish_render_submission(&RenderSubmission::shell_ui(FrameId::ZERO, packet));
LegacyHardwareRenderSubmissionSink::new(ctx.hw)
.submit_render_submission(RenderSubmission::shell_ui(FrameId::ZERO, packet))
.expect("firmware splash render submission should publish");
// Transition logic
// If any button is pressed at any time after the animation ends