5 releases (3 breaking)
0.4.1 | Jul 24, 2024 |
---|---|
0.4.0 | Jun 19, 2024 |
0.3.0 | Jun 5, 2024 |
0.2.0 | Feb 1, 2024 |
0.1.0 | Jul 20, 2023 |
#413 in Embedded development
342 downloads per month
65KB
1.5K
SLoC
Driver for IT8951 E-Paper display
This crate is mainly developed for the waveshare 7.8" epaper display using spi: https://www.waveshare.com/wiki/7.8inch_e-Paper_HAT The driver uses the embedded_hal traits as hardware abstraction layer. This driver can be used with the embedded graphics trait, currently only supporing Gray4 (16bit grayscale).
Details
- IT8951 has a image load engine which can convert pixel data before storing it in the local frame buffer.
- It is possible to read and write the memory directly without using the image load engine
- Important Data must be always aligned to 16bit words!
- The crates uses the alloc feature to allocate memory on the heap:
- Firmware and LUT version string read from the controller
- Staging buffers to write pixel to the controller. The buffers are allocated as needed, but only one buffer at a time and with up to 1kByte of size.
- When reading controller memory a staging buffer with the size of of the requested data is created.
TODOs
- Support Gray2 and Gray8 with embedded-graphics
- Support display engine fill area
- Support display engine 1 bit per pixel mode
- Support static buffer allocations
Changelog
0.4.1
- fix divide by zero in fill_solid for zero sized area
- fill_solid correctly skip limit areas to the display bounds
0.4.0
- Public API
new
expects aConfig
parameter to set timeout and buffer size. Default is implemented with timeouts of 15s and buffer size is 1024 Bytes. - Buffer data type changed from u16 to u8
- Public API:
load_image_area
,load_image
, andmemory_burst_write
functions are now using u8 as buffer type - Memory usage is reduced by half (1kByte max. instead of 2kByte)
- Public API:
- Behavior Calling
init
no longer clears the eink display. Instead callreset
directly.
Dependencies
~540KB