Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active December 28, 2019 09:57
SPI Log Remarks
spi cmd 2a

spi data 00 00 00 13
Set Address Window Columns CASET
st7735_lcd::draw() → set_pixels() → set_address_window()
Start Col: 0, End Col: 0x13
spi cmd 2b

spi data 00 00 00 00
Set Address Window Rows RASET
st7735_lcd::draw() → set_pixels() → set_address_window()
Start Row: 0, End Row: 0
spi cmd 2c

spi data
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
Write Pixels RAMWR
st7735_lcd::draw() → set_pixels() → write_pixels()
Pixel Colors: 87 e0 87 e0 ...
(2 bytes per pixel)
spi cmd 2a

spi data 00 14 00 27
Set Address Window Columns CASET
st7735_lcd::draw() → set_pixels() → set_address_window()
Start Col: 0x14, End Col: 0x27
spi cmd 2b

spi data 00 00 00 00
Set Address Window Rows RASET
st7735_lcd::draw() → set_pixels() → set_address_window()
Start Row: 0, End Row: 0
spi cmd 2c

spi data
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
87 e0 87 e0 87 e0 87 e0
Write Pixels RAMWR
st7735_lcd::draw() → set_pixels() → write_pixels()
Pixel Colors: 87 e0 87 e0 ...
(2 bytes per pixel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment