MCPcopy Index your code
hub / github.com/IniterWorker/gc9a01

github.com/IniterWorker/gc9a01 @0.4.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.4.2 ↗ · + Follow
83 symbols 128 edges 11 files 31 documented · 37%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GC9A01

<a href="https://github.com/initerworker/gc9a01/actions/workflows/rust-release.yml"><img src="https://github.com/initerworker/gc9a01/actions/workflows/rust-release.yml/badge.svg" alt="Github CI/CD"></a>
<a href="https://crates.io/crates/gc9a01-rs"><img src="https://img.shields.io/crates/v/gc9a01-rs.svg" alt="Crates.io"></a>
<a href="https://docs.rs/gc9a01-rs"><img src="https://docs.rs/gc9a01-rs/badge.svg" alt="Docs.rs"></a>

Gc9a01-rs

Rust implementation SPI 4-wire driver for the Gc9a01 display driver with a generic interface for display drivers and embedded-hal v1.0.0 support.

GC9A01 Display Driver

This crate provides a driver interface to the GC9A01 LCD display driver. It supports SPI via the display_interface crate.

The main driver is created using [Gc9a01::new] which accepts an interface instance, display, size, rotation and mode. The following display modes are supported:

  • [BasicMode] - A simple mode with lower level methods available.
  • [BufferedGraphics] - A framebuffered mode with additional methods and integration with embedded-graphics.

Support

Example

Hardware

Inspiration

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

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.

Extension points exported contracts — how you extend this code

DisplayDefinition (Interface)
Screen information This trait describes information for a particular hardware [1 implementers]
src/display.rs
DisplayConfiguration (Interface)
(no doc) [2 implementers]
src/mode/mod.rs
NewZeroed (Interface)
(no doc) [1 implementers]
src/display.rs

Core symbols most depended-on inside this repo

send
called by 33
src/command.rs
set_draw_area
called by 6
src/driver.rs
dimensions
called by 6
src/driver.rs
bounds
called by 4
src/driver.rs
set_display_rotation
called by 3
src/driver.rs
init_with_addr_mode
called by 2
src/driver.rs
set_write_mode
called by 2
src/driver.rs
set_pixels
called by 2
src/mode/basic.rs

Shape

Method 50
Enum 20
Class 10
Interface 3

Languages

Rust100%

Modules by API surface

src/command.rs25 symbols
src/driver.rs22 symbols
src/mode/graphics.rs11 symbols
src/mode/basic.rs11 symbols
src/display.rs5 symbols
src/brightness.rs4 symbols
src/spi.rs2 symbols
src/rotation.rs2 symbols
src/mode/mod.rs1 symbols

For agents

$ claude mcp add gc9a01 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact