Before proceeding with the project log, let me thank all joined me in this and started following my project. I also apologize for not updating for a while.
Ok, few days ago I came across lots of emulation info while trying to write my own NES emulator in C++ . Unfortunately I couldn't write a NES emulator but, I found an easier target which was the CHIP 8. Everything went smoothly and I did that and that's when I got the idea of writing the emulator for the smart watch.
It was a super easy straightforward process that took me a day to write the emulator for PC and an hour to convert it for the smart watch.
I found this amazing tutorial for writing the emulator at http://www.multigesture.net/articles/how-to-write-an-emulator-chip-8-interpreter/ (You can read more about it there )
Game screenshots:
Brief notes:
- The games are included in the code but I can load them directly from an sd card if I implement the write code (which can be a future goal)
- The chip 8 outputs black and white graphics , the graphics are stored in an array (simulating the RAM in the actual system) as 0 (for back pixel) and 1(white pixel)
- Each pixel in the display array is output as 1 pixel on the smartwatch display and since the chip 8 is 64 * 32 , you can see why the games are taking a small portion of the screen ( I have to out put it as 128 * 64 in the next update )
- The CHIP 8 originally has 16 inputs for game play and all sort of control 1-9 & A-F .. However I have only 4 buttons on my smart watch , so that's another challenge.
- Clicking the top button on the watch toggles between the watch face and the emulator , you can clearly see it in the video above.
Conclusion:
So far the watch :
- Has a decent watch face with the weather/time/date.
- Displays notifications.
- Has games which can be loaded on the CHIP 8 Emulator.
Thinking outside of the box:
The emulator is good for games but it's not just limited to the games actually. Other programs can be written for CHIP 8 and with the right code it can be loaded to the smart watch over Bluetooth to achieve something like what the pebble has.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.