Registry / other / embedded-graphics

embedded-graphics

JSON →
library0.8.2rscratesunverified

Embedded graphics library for small hardware displays

# Cargo.toml [dependencies] embedded-graphics = "0.8.2"
INSTALL
IMPORT
SIG · EMBEDDED-GRAPHICS
E
embedded-graphics
otherrustv0.8.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Drawable
✓ use embedded_graphics::prelude::*;

Draw a circle on a mock display

use embedded_graphics::{ pixelcolor::BinaryColor, prelude::*, primitives::{Circle, PrimitiveStyle}, mock_display::MockDisplay, }; fn main() { let mut display: MockDisplay<BinaryColor> = MockDisplay::new(); let circle = Circle::new(Point::new(10, 10), 20) .into_styled(PrimitiveStyle::with_stroke(BinaryColor::On, 1)); circle.draw(&mut display).unwrap(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
embedded-graphics — cargo add embedded-graphics · libregistry