pub struct Commands<S> { /* private fields */ }
Expand description
Commands of ST7735 in their original form, except that the parameters of each command are typed.
Implementations§
Source§impl<S> Commands<S>
impl<S> Commands<S>
Sourcepub async fn caset(&mut self, begin: u16, end: u16)
pub async fn caset(&mut self, begin: u16, end: u16)
Sets the column address window as begin
to end
, both inclusive.
Sourcepub async fn raset(&mut self, begin: u16, end: u16)
pub async fn raset(&mut self, begin: u16, end: u16)
Sets the row address window as begin
to end
, both inclusive.
Sourcepub async fn ramwr(&mut self) -> RamWriter<'_, S>
pub async fn ramwr(&mut self) -> RamWriter<'_, S>
Starts writing memory. The returned object can be used to actually do the memory writing.
Sourcepub async fn rgbset(&mut self) -> RamWriter<'_, S>
pub async fn rgbset(&mut self) -> RamWriter<'_, S>
Starts writing the RGB lookup table (see the ST7735S datasheet sec 9.18).
The returned object can be used to actually do the memory writing. The user is expected to write exactly 128 bytes, which is not enforced by the library.
The lookup table is needed when the color mode (see colmod()) is not Colmod::R6G6B6.
Sourcepub async fn ptlar(&mut self, begin: u16, end: u16)
pub async fn ptlar(&mut self, begin: u16, end: u16)
Sets the partial area address window as begin
to end
, both
inclusive.
Source§impl<S> Commands<S>
impl<S> Commands<S>
Sourcepub async fn rddid(&mut self) -> [u8; 3]
pub async fn rddid(&mut self) -> [u8; 3]
Reads ID1
, ID2
and ID3
of the screen with a single command.
Sourcepub async fn rdid1(&mut self) -> u8
pub async fn rdid1(&mut self) -> u8
Reads ID1
, i.e., the manufacturer ID. Unless reprogrammed, the value
should be 0x7C (decimal 124).