Skip to content

Commit

Permalink
Pomelo: graphical forth shell (#261)
Browse files Browse the repository at this point in the history
This PR adds a graphical forth shell to pomelo, simulating the
experience of an actual device. The previous terminal shell is available
in parallel.

---------

Co-authored-by: Anatol Ulrich <e+github@mail.taugt.net>
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
3 people authored Aug 31, 2023
1 parent 0b42b56 commit 699928d
Show file tree
Hide file tree
Showing 14 changed files with 706 additions and 119 deletions.
157 changes: 126 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions platforms/melpomene/src/sim_drivers/emb_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ async fn render_loop(
}
}

// TODO: move to shared helper module - https://github.com/tosc-rs/mnemos/issues/260
// TODO: blocked on e-g update https://github.com/tosc-rs/mnemos/issues/259
fn draw_to(dest: &mut HeapArray<u8>, src: &MonoChunk, width: u32, height: u32) {
let meta = src.meta();
let data = src.data();
Expand Down Expand Up @@ -347,6 +349,9 @@ fn draw_to(dest: &mut HeapArray<u8>, src: &MonoChunk, width: u32, height: u32) {
}
}

// TODO: move to shared helper module - https://github.com/tosc-rs/mnemos/issues/260
// TODO: blocked on e-g update https://github.com/tosc-rs/mnemos/issues/259

/// Create and return a Simulator display object from raw pixel data.
///
/// Pixel data is turned into a raw image, and then drawn onto a SimulatorDisplay object
Expand Down
Loading

0 comments on commit 699928d

Please sign in to comment.