Hacker Newsnew | past | comments | ask | show | jobs | submit | lizzylot's commentslogin

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!"

Is the oil company evil for selling me oil or am I evil for buying it. I know which message is more palatable for the average consumer. I also know that without buyers there would be no sellers.

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.

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.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: