snake_compiler git · main
Snake compiled to a bare-metal RISC-V microcontroller
C 95.2% Markdown 3.3%git clone https://git.christianimmanuel.de/embedded/snake_compiler.gitwget https://git.christianimmanuel.de/embedded/snake_compiler/archive/snake_compiler.tar.gzsnake_SDL/make_compiler.sh raw
make -C src/ clean &&
make -C src/ build EXTRA_CFLAGS="\
-DWALL_COLLISION=0 \
-DSNAKE_START_LENGTH=7 \
-DMAX_BRIGHTNESS=7 \
-DSNAKE_COLOR_R=0 \
-DSNAKE_COLOR_G=7 \
-DSNAKE_COLOR_B=0" &&
make -C src/ flash &&
make -C src/ monitor