I wanna show you my ESP8266 based Arduboy in a ps2 controller. Actually it is more a controller for my other projects where I can also play a few games.
Here is a link with more pictures and informations: thiniverse link
As already said the main chip is an ESP8266. I found a ESP8266 branch of arduboy but It was a bit different with an additional arduino Nano. So I forked the old arduboy(ONE) library and changed a few lines to make it run.
I am using a few librarys to get all this working:
- PS2X_lib to read the controller buttons (there is a branch with ESP8266 support available)
- SSD1306_OLED_ESP8266 to write to the 128x64 I2C oled
- Brzo_i2c is used by the OLEDDisplay lib for 800MHz I2C speed
I also had to made some little changes in the SSD1306_OLED_ESP8266 lib, so sharing my arduboy fork alone wouldn´t really help anybody else. I know nothing about licences so I am not sure if I could share ported games with anybody else.
After playing Squario, which was the first and only arduboy game I ported, i realised that allmost every other game now uses Arduboy2. And by porting I mean adding about 10 lines of code, the rest happens inside the Arduboy lib. I tried to get the Arduboy2 lib running but had some problems with it and the games, there is a lot avr specific code in them.
Right now I am programming my own game based on the old Arduboy lib. I kind of like it more, because I want to use all those adafruit like draw funktions and stuff.
CPU Speed is not an issue if you have 32bit and 80MHz. I hope it will also run fast enough on those avr chips. Flash is more than enough available, so I compile it now and than for a lenoardo board to keep in mind how much there is left if I had a real arduboy.
I also ported the gamebuino library to this platform. The games are easier to port but I do not like the even smaller display resolution, so I got back to arduboy.