HackerTrans
TopNewTrendsCommentsPastAskShowJobs

lizzylot

no profile record

comments

lizzylot
·5 miesięcy temu·discuss
Climate change is a global problem. Fossil fuels burned in Norway or somewhere contributes the same amount of CO2. It's kinda like shipping your plastic trash to another country and have them dumping it into the ocean and going "look how clean we are, 0 plastic trash!"
lizzylot
·5 miesięcy temu·discuss
For simple SPI displays it's the transfer bandwidth that dominates, so for best performance you wanna minimize the number of pixels you need to send. So for eaxmple: if you wanna draw a 100 pixel long horizontal line, if you ever send more than 100 pixels of data you're not gonna hit the speed of light. And if you wanna draw an angled line you're gonna have to do something like bresenham and pixel by pixel because drawing NxN blocks for a 45 degree line would be insane.
lizzylot
·5 miesięcy temu·discuss
Without DMA you need to insert a lot of wasted cycles to wait between each SPI transfer, so it doesn't take that many bytes to make it worth it. I use variable width fonts on 16bit rgb565 displays and DMA doubles the speed of drawing text with ~20 bytes/characters.