proton:arduboysim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proton:arduboysim [2016/05/28 12:01] – seth | proton:arduboysim [2018/07/28 14:22] (current) – seth | ||
---|---|---|---|
Line 4: | Line 4: | ||
See a Vine of it in action [[https:// | See a Vine of it in action [[https:// | ||
+ | |||
+ | Play its HTML5 export in a browser [[http:// | ||
== What does it do? == | == What does it do? == | ||
- | It's a harness to run code written for the [[https:// | + | It's a harness to run code written for the [[https:// |
== Features/ | == Features/ | ||
Line 34: | Line 36: | ||
== 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>/ | + | * Add your sketch files to <proton install dir>/ |
* 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() | ||
- | * You can now try compiling. | + | |
+ | | ||
* Your thing might run now! If not, it's probably because of something I'm not simulating yet and you'll have to add it | * Your thing might run now! If not, it's probably because of something I'm not simulating yet and you'll have to add it | ||
+ | |||
== 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>/ | + | Just double click <proton install dir>/ |
== Thoughts/ | == Thoughts/ | ||
Line 48: | Line 52: | ||
* Maybe there is a better way than the dummy .ino file calling main_begin() and main_loop(), | * Maybe there is a better way than the dummy .ino file calling main_begin() and main_loop(), | ||
* Most code is copied from the Arduboy & Arduino projects and not mine. Feel free to use/steal any the stuff I wrote in the ArduboySim or / | * Most code is copied from the Arduboy & Arduino projects and not mine. Feel free to use/steal any the stuff I wrote in the ArduboySim or / | ||
+ | * Why am I still using VC++ 2005? I dunno, I just like the IDE more than the 2015 version and use it when I can. VC++ 2015 should work too but you'd have to update the solution file, I didn't try it | ||
+ | * I made a [[http:// | ||
+ | |||
+ | |||
+ | -- Updates/ | ||
+ | |||
+ | * June 2nd 2016: Now plays simple tones (to use, Switch build to "SDL Debug GL", you'll need SDL 2 libs), display more accurately simulated, supports HTML5 web version, just run / | ||
+ | * June 7th 2016: Can now compile both arduboylib 1.1 and 1.2 code, 1.1 is now default and ardubreakout was changed to the 1.1 version. Should define RT_ARDU_DEV_BRANCH for 1.2 code, will fix timing to match 1.2 | ||
+ | * June 8th 2016: Landscape mode support: ArduboySim' |
proton/arduboysim.txt · Last modified: 2018/07/28 14:22 by seth