User Tools

Site Tools


proton:rtarduboy

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proton:rtarduboy [2016/05/28 08:41] sethproton:rtarduboy [2016/05/28 09:31] (current) seth
Line 1: Line 1:
 === Proton Arduboy Simulator == === Proton Arduboy Simulator ==
  
-{{:proton:arduboy_dev.png|}}+{{:proton:arduboysim.png?300}}
  
 See a Vine of it in action [[https://vine.co/v/i9H5ZYWvLFV|here]]. See a Vine of it in action [[https://vine.co/v/i9H5ZYWvLFV|here]].
Line 14: Line 14:
   * Can interact with the mouse (click the buttons, easy) or the keyboard   * Can interact with the mouse (click the buttons, easy) or the keyboard
   * Pixel perfect simulation, includes AbPrinter, WCharacter, WString, etc   * Pixel perfect simulation, includes AbPrinter, WCharacter, WString, etc
-  * Code pieces that lacks reentrancy (like a giant while loop until a key is pressed) work ok+  * Even code pieces that lacks reentrancy (like a giant while loop until a key is pressed) work ok
  
 == Issues/Bad stuff == == Issues/Bad stuff ==
Line 34: Line 34:
 == 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 42: 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.1464424907.txt.gz · Last modified: 2016/05/28 08:41 by seth