8 releases

0.4.1 Apr 3, 2024
0.4.0 Feb 6, 2024
0.3.1-alpha Sep 12, 2022
0.2.2 Sep 26, 2020
0.1.0 Oct 11, 2019

#349 in Embedded development

Download history 3/week @ 2024-01-31 2/week @ 2024-02-14 8/week @ 2024-02-21 15/week @ 2024-02-28 2/week @ 2024-03-06 8/week @ 2024-03-13 1/week @ 2024-03-20 10/week @ 2024-03-27 121/week @ 2024-04-03 3/week @ 2024-04-10

135 downloads per month

MIT license

22KB
423 lines

ST7920

This is a Rust driver library for LCD displays using the ST7920 controller. It supports graphics mode of the controller, 128x64 in 1bpp. SPI connection to MCU is supported.

It implements embedded-graphics driver API.

It is platform independent as it uses embedded-hal APIs to access hardware.

The examples are based on the stm32f4xx_hal implementation of embedded-hal.

Documentation

See examples.

The controller supports 1 bit-per-pixel displays, so an off-screen buffer has to be used to provide random access to pixels. Size of the buffer is 1024 bytes.

The buffer has to be flushed to update the display after a group of draw calls has been completed. The flush is not part of embedded-graphics API.

License

This library is licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)

Dependencies

~0.5–1.7MB
~29K SLoC