Ray casting engine for AVR microcontroller