Skip to content

ST7789P3 support #10

Closed
Closed

Description

@rhgndf

There is a variant of ST7789 named P3, what is the best way to support this variant? I tried adding support but it seems to require a lot of changes.

The only difference is that for P3, we need to set 0xC5 instead of 0xC4. Maybe add an option<u8> to it? Or using traits ST7789P3Specs: ST7789Specs or ST7789Specs<P3>?

    /// VDV Set (0xC4) - 1 byte: Default ST7789 only
    const VDVS_PARAM: u8;

    /// VCOM Offset Set (0xC5) - 1 byte: ST7789P3 only
    const VCMOFSET_PARAM: u8;

Activity

  1. decaday commented on Sep 23, 2026

    @decaday
    Owner

    Thanks a lot for bringing this up!

    After an initial look, I feel we can just go with Option<&'static [u8; 1]>.
    Changing the traits would add too much complexity and cause potential issues with inheritance. Since this project prefers a practical design, I'd rather avoid complicating the traits.

  2. decaday commented on Oct 3, 2026

    @decaday
    Owner

    Closing as #11 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions