Skip to content

Instantly share code, notes, and snippets.

View MabezDev's full-sized avatar
🦀

Scott Mabin MabezDev

🦀
View GitHub Profile

Bootstrapping Rust with xtensa support

Build xtensa llvm from here https://esp32.com/viewtopic.php?t=9226&p=38466

But add the X86 target like so

cmake ../llvm-xtensa -DLLVM_TARGETS_TO_BUILD="Xtensa;X86" -DCMAKE_BUILD_TYPE=Release -G "Ninja"
@MabezDev
MabezDev / 1.md
Last active October 23, 2018 17:10
Create a 16bit R5G6B5 raw image for embedded displays.
  • Import your image or create image with GIMP.

  • Export as bmp -> advanced options -> 16bit

  • Then to get the raw bytes run tail -c $bytes image.bmp > image.raw where $bytes is w * h * 2 of the image. This removes the BMP header.