tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
587 stars 180 forks source link

st7789: avoid heap allocations after the driver is created #545

Closed aykevl closed 1 year ago

aykevl commented 1 year ago

Heap allocations can result in significant and unpredictable slowdowns. For example, they can take over 10ms on the Gopher Badge, which results in visible tearing (when tearing is otherwise avoided).

conejoninja commented 1 year ago

Nice! thanks again!