pub struct UnicornHatHd { /* private fields */ }
Expand description

Provide high-level access to the Unicorn HAT HD.

Implementations

Create a new UnicornHatHd with the provided Bus and SlaveSelect

Write the display buffer to the Unicorn HAT HD.

Set an individual pixel’s RGB value.

The origin ((0, 0)) is the top-left of the display, with x & y increasing to the right, and down, respectively.

Return a tuple of an individual pixel’s RGB value.

The origin ((0, 0)) is the top-left of the display, with x & y increasing to the right, and down, respectively.

NOTE: This returns what’s in the display buffer, not what the physical pixel is set to.

Clear the internal buffer of pixel states.

To clear the display itself, you’ll still need to call display to update the Unicorn HAT HD.

Trait Implementations

Create a UnicornHatHd using the default Bus::Spi0 and SlaveSelect::Ss0.

This will panic if initialization fails.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.