Floyd-Fish / ST7789-STM32

using STM32's Hardware SPI to drive a ST7789 based IPS displayer
GNU General Public License v3.0
276 stars 55 forks source link

Fill color issue. #24

Open sky9t-sulia opened 1 year ago

sky9t-sulia commented 1 year ago

memset will not set uint16_t type. it will only set first byte.

use this instead:

uint16_t memset16(uint16_t m, uint16_t val, size_t count) { uint16_t *buf = m;

while (count--)
    *buf++ = val;
return m;

}