This is a ray casting graphic demo that runs on a Arduion together with a ssd1306 oled display and some buttons and an analog joystick for movement.
This code is based on the great tutorial on ray casting by Lode Vandevenne http://lodev.org/cgtutor/raycasting.html
Adafruits gfx library was used for drawing objects on the screen:
https://learn.adafruit.com/adafruit-gfx-graphics-library/overview
And Adafruits ssd1306 arduino library is used to interface with the display.
I just tested your code w/ a Teensy3.6 & SSD1306 screen (no button yet, but added spinning in main loop) // the refresh rate is really impressive & the code is pretty tiny.
Great Work !