GordonCox / st7789v2_driver

MIT License
0 stars 0 forks source link

ST7789V2 Display Driver

This crate provides a driver for the ST7789V2 display, enabling basic operations such as initialization, clearing the screen, setting pixels, drawing images, and displaying buffers. The driver is built using the embedded-hal and embedded-graphics crates to ensure compatibility with various embedded platforms. The crate has been updated to accommodate the latest versions of embedded-hal and embedded-graphics.

toml

Copy code

[dependencies] embedded-hal = { version = "1.0.0" } embedded-graphics = { version = "0.7.1" }

Features

Usage

Adding the Crate

To use this crate, add the following dependencies to your Cargo.toml:

API Overview

ST7789V2

The ST7789V2 struct provides methods to interact with the display. Key methods include:

FrameBuffer

The FrameBuffer struct represents a frame buffer and includes methods to manipulate it:

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.