Running DOOM (Sort Of) on a Sonoff Smart Switch

Itβs often said in this community that DOOM can be made to run on anything, and as time goes on, thatβs becoming more and more accurate. Weβre at the point now that every βnormalβ device seems to have some version of the iconic 1993 shooter, so now thereβs nothing left but to start working on the more oddball targets.
As a perfect example, [piuppi] recently wrote in to share their efforts to get DOOM β or at least something that looks like it β running on the Sonoff Basic R2 smart switch. We say something that looks like it because the game youβre seeing in the video below isnβt actually DOOM. In fact, itβs not even really a full game. Itβs essentially a tech demo thatβs capable of rendering graphical data pulled from the game, but only within the confines of simplistic map. Still, not bad for something designed to turn lamps on and off.
The GitHub repo includes excellent documentation should you want to rip and tear on your own Sonoff device. As you might expect the process is a bit involved, and does require you to provide your own copy of DOOM for the script to extract the necessary data from. After itβs setup, you can hit the switch from any browser on the local network and take out your frustrations on the state of modern home automation on some imps. The best part is, even after the game is installed and running on the switch, the device still actually works as a switch.
But donβt worry. Even in the unlikely event that we run out of devices that can be hacked to run DOOM, thereβs still a whole world of gadgets out there that need their own port of Duke Nukem 3D.