INNER CODE UNIT · C++
w
Hykudoru/Pescado-Engine-Embedded-ESP32S3 · src/rm67162.cpp:209
uint16_t w = xend - xsta;
uint16_t h = yend - ysta;
uint16_t *color_p = (uint16_t *)heap_caps_malloc(w * h * 2, MALLOC_CAP_INTERNAL);
memset(color_p, color, w * h * 2);
lcd_PushColors(xsta, ysta, w, h, color_p);
free(color_p);
}
void lcd_DrawPoint(uint16_t x, uint16_t y, uint16_t color)
{
lcd_address_set(x, y, x + 1, y + 1);
lcd_PushColors(&color, 1);
}
void lcd_PushColors(uint16_t x,
uint16_t y,
uint16_t width,
uint16_t high,