Embedded graphics
A small 2D graphics library to draw things on embedded graphical LCDs, like the SSD1306 OLED display.
It currently only supports monochrome displays. Contributions to support full colour as well are very welcome!
Example from the SSD1306 driver:
extern crate cortex_m;
extern crate embedded_graphics;
extern crate embedded_hal as hal;
extern crate panic_abort;
extern crate ssd1306;
extern crate stm32f103xx_hal as blue_pill;
use ;
use *;
use Image1BPP;
use *;
use ;
Documentation
Features
- Primitives
- Lines
- Squares/rects
- Circles
- Images
- 1BPP images as
&[u8]
s - 8BPP images as
&[u8]
s (downsampled badly to 1BPP)
- 1BPP images as
- Text
- 6x8 bitmap font
- Translations: move an object around the screen
TODO
- General matrix transforms
- Full colour support
Attribution
All source font PNGs are taken from the excellent Uzebox Wiki page.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.