You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running `target/debug/tidbyt-2`
thread 'main' panicked at 'tried to draw pixel twice (x: 61, y: 10)', /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-0.8.0/src/mock_display/mod.rs:383:13
stack backtrace:
0: rust_begin_unwind
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:593:5
1: core::panicking::panic_fmt
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/panicking.rs:67:14
2: embedded_graphics::mock_display::MockDisplay<C>::draw_pixel
at /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-0.8.0/src/mock_display/mod.rs:383:13
3: <embedded_graphics::mock_display::MockDisplay<C> as embedded_graphics_core::draw_target::DrawTarget>::draw_iter
at /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-0.8.0/src/mock_display/mod.rs:714:13
4: embedded_graphics_core::draw_target::DrawTarget::fill_contiguous
at /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-core-0.4.0/src/draw_target/mod.rs:392:9
5: embedded_graphics_core::draw_target::DrawTarget::fill_solid
at /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-core-0.4.0/src/draw_target/mod.rs:408:9
6: embedded_graphics::primitives::rectangle::styled::<impl embedded_graphics::primitives::styled::StyledDrawable<embedded_graphics::primitives::primitive_style::PrimitiveStyle<C>> for embedded_graphics_core::primitives::rectangle::Rectangle>::draw_styled
at /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-0.8.0/src/primitives/rectangle/styled.rs:88:13
7: <embedded_graphics::primitives::styled::Styled<T,S> as embedded_graphics_core::drawable::Drawable>::draw
at /Users/tmcw/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-0.8.0/src/primitives/styled.rs:121:9
8: tidbyt_2::main
at ./src/main.rs:45:5
9: core::ops::function::FnOnce::call_once
at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
My guess is that this code example should be able to complete drawing?
The text was updated successfully, but these errors were encountered:
Wanted to buzz in, I've got the same issue. I have a small embedded display I'd like to send frames to, and the following give me this error:
let mut display: MockDisplay<BinaryColor> = MockDisplay::new();
loop {
/*business logic*/
let mut data = [BinaryColor::Off; 12 * 11];
let mut fbuf = FrameBuf::new(&mut data, 12, 11);
Line::new(Point::new(2, 2), Point::new(10, 2))
.into_styled(PrimitiveStyle::with_stroke(BinaryColor::On, 2))
.draw(&mut fbuf)?;
// Write it all to the display
let area = Rectangle::new(Point::new(0, 0), fbuf.size());
display.fill_contiguous(&area, data)?;
}
thread 'main' panicked at /j/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embedded-graphics-0.8.1/src/mock_display/mod.rs:383:13:
tried to draw pixel twice (x: 0, y: 0)
stack backtrace:
0: rust_begin_unwind
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/82e1608dfa6e0b5569232559e3d385fea5a93112/library/core/src/panicking.rs:72:14
2: camera_display::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
I'm trying to get started and tried the example in the readme from "Shapes and Text" ( https://github.com/embedded-graphics/embedded-graphics#shapes-and-text ) - but running it unmodified produces
My guess is that this code example should be able to complete drawing?
The text was updated successfully, but these errors were encountered: