User Tools

Site Tools


proton:rtarduboy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
proton:rtarduboy [2016/05/27 07:35] – created sethproton:rtarduboy [2016/05/28 08:42] seth
Line 1: Line 1:
-=== RTArduboy Simulator ==+=== Proton Arduboy Simulator ==
  
 {{:proton:arduboy_dev.png|}} {{:proton:arduboy_dev.png|}}
Line 23: Line 23:
   * No LED light simulation, those commands will just do nothing   * No LED light simulation, those commands will just do nothing
   * Somewhat hacky, only works with Windows. Wouldn't be tough to fix that and make it worth with other things though, for example, a html5 export shouldn't be too hard hard   * Somewhat hacky, only works with Windows. Wouldn't be tough to fix that and make it worth with other things though, for example, a html5 export shouldn't be too hard hard
-  * Unfortunately optimized stuff like TEAM a.r.g's games won't run because they don't use the original Arduboy.h/cpp class. You'd have to modify Arglib in a similar way for it to work, or add any missing things to my version of the Arduboy class.+  * Unfortunately optimized stuff like TEAM a.r.g's games won't run because they don't use the original Arduboy.h/cpp class. You'd have to modify Arglib.* in a similar way as I did for Ardoboy.* for it to work, or add any missing things to my version of the Arduboy class.
  
 == How to compile and run it as is == == How to compile and run it as is ==
 +* The Proton ArduboySim/win subdirectory contains the Visual C++ solution to open.  This is included with the main Proton distribution which you can get [[http://www.rtsoft.com/wiki/doku.php?id=proton:download|here]]. (What's Proton SDK?  It's kind of like SDL but you include all the .cpp files rather than use a library)
 +
 By default I've included a slightly modified version of Arduboy's breakout example. To run it, open the Visual Studio project and compile the "Debug GL" or "Release GL" configuration. By default I've included a slightly modified version of Arduboy's breakout example. To run it, open the Visual Studio project and compile the "Debug GL" or "Release GL" configuration.
  
-Hopefully it runs!+Hopefully it runs.
  
 == How to convert your own Arduboy code/sketch to run == == How to convert your own Arduboy code/sketch to run ==
  
-  * Add your sketch files to <proton install dir>/RTArduboy/Arduboy. (you should probably delete break_outbitmaps.* as your sketch likely doesn't use them)+  * Add your sketch files to <proton install dir>/ArduboySim/Arduboy. (you should probably delete break_outbitmaps.* as your sketch likely doesn't use them)
   * Replace ardu_main.cpp with the contents of your .ino file. Delete your .ino file, you won't need it anymore, Arduboy.ino will be used instead   * Replace ardu_main.cpp with the contents of your .ino file. Delete your .ino file, you won't need it anymore, Arduboy.ino will be used instead
   * Rename begin() and loop() to main_being() and main_loop()   * Rename begin() and loop() to main_being() and main_loop()
Line 40: Line 42:
 == How to run your converted sketch on the real Arduino == == How to run your converted sketch on the real Arduino ==
  
-Just double click <proton install dir>/RTArduboy/Arduboy/Arduboy.ino and compile and install like usual, it should work.  You can zip up just that dir if you want to give the Sketch source to somebody, it works the same as usual despite the tweaks.+Just double click <proton install dir>/ArduboySim/Arduboy/Arduboy.ino and compile and install like usual, it should work.  You can zip up just that dir if you want to give the Sketch source to somebody, it works the same as usual despite the tweaks.
  
 == Thoughts/Notes == == Thoughts/Notes ==
  
   * Maybe there is a better way than the dummy .ino file calling main_begin() and main_loop(), dunno, but this does work.   * Maybe there is a better way than the dummy .ino file calling main_begin() and main_loop(), dunno, but this does work.
-  * Most code is copied from the Arduboy/Arduino project and not mine. Feel free to use/steal any the stuff I wrote in the RTArduboy or /shared/Arduboy directory trees as needed. +  * Most code is copied from the Arduboy/Arduino project and not mine. Feel free to use/steal any the stuff I wrote in the ArduboySim or /shared/Arduboy directory trees as needed.
proton/rtarduboy.txt · Last modified: 2016/05/28 09:31 by seth