5 unstable releases

0.3.0 Jul 27, 2021
0.2.2 Mar 2, 2019
0.2.1 Jan 20, 2019
0.2.0 Jul 21, 2018
0.1.0 Jul 15, 2018

#1553 in Embedded development

Download history 74/week @ 2024-03-09 65/week @ 2024-03-16 146/week @ 2024-03-23 304/week @ 2024-03-30 49/week @ 2024-04-06 53/week @ 2024-04-13 49/week @ 2024-04-20 22/week @ 2024-04-27 73/week @ 2024-05-04 92/week @ 2024-05-11 79/week @ 2024-05-18 34/week @ 2024-05-25 50/week @ 2024-06-01 71/week @ 2024-06-08 47/week @ 2024-06-15 92/week @ 2024-06-22

265 downloads per month

MIT/Apache

89KB
1.5K SLoC

SSD1322 OLED display driver

Newhaven OLED display showing Ferris and the Rust logo

Pure Rust driver for the SSD1322 OLED display chip, for use with embedded-hal.

Description

This driver is intended to work on embedded platforms using the embedded-hal trait library. It is no_std, contains no added unsafe, and does not require an allocator. The initial release supports the 4-wire SPI interface.

Because the SSD1322 supports displays as large as 480x128 @ 4bpp, the primary API uses a Region abstraction to allow writing a stream of pixel data from an iterator onto a rectangular sub-region of the display area. This avoids the requirement to buffer the entire display RAM in the host, since such a buffer would consume a colossal (for a μC) 30kiB of RAM.

Missing features:

  • embedded-graphics Drawing support.
  • Parallel interface support.
  • Chip select and bus sharing (assumes /CS is tied low).
  • Text mode and/or fonts.

Acknowledgements

jamwaffles/ssd1306 for internal design inspiration. japaric/embedded-hal for making dealing with embedded hardware easy, safe, and enjoyable.

License

Licensed under either of

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.

Dependencies

~535KB