DV Display: Fix clear sprite, fix tearing

This commit is contained in:
Mike Bell 2023-07-11 23:07:09 +01:00 committed by Phil Howard
parent 765b8a6226
commit 3a5f069ec1
3 changed files with 1373 additions and 1345 deletions

View File

@ -465,8 +465,8 @@ namespace pimoroni {
void DVDisplay::clear_sprite(int sprite_num)
{
uint16_t off = 0xFFFF;
i2c->write_bytes(I2C_ADDR, sprite_num, (uint8_t*)&off, 2);
uint8_t buf[3] = {1, 0xFF, 0xFF};
i2c->write_bytes(I2C_ADDR, sprite_num, buf, 3);
}
uint32_t DVDisplay::point_to_address(const Point& p) const {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff