[−][src]Crate st7735
This crate provides a ST7735 driver to connect to TFT displays.
Currently, there is support for using hardware SPI as well as software SPI to communicate to the display. Note that using hardware SPI is much faster and recommended to be used if supported by the connecting device.
The driver also provides a simple graphics library which currently supports drawing the following shapes:
- Rectangles (filled and border only)
- Circles (filled and border only)
- Lines (horizontal, vertical, and diagonal)
- Text (characters)
Examples
let mut display = ST7734::new_with_spi("/dev/spidev0.0", 25); display.set_orientation(&Orientation::Portrait); display.draw_rect(30, 30, 60, 70, &Color::from_default(DefaultColor::Blue));
Modules
color | |
command | |
fonts |
Structs
ST7734 | ST7735 driver to connect to TFT displays. The driver allows to draw simple shapes, and reset the display. |
Enums
Orientation | Display orientation. |