Make SimpleIDE compatible with Arduino code and libraries?
michaellangford99
Posts: 19
in Propeller 1
Just thinking, what if SimpleIDE was made to be compatible with Arduino code and libraries? There is so much demo code out there for Arduino compatible products, but nearly none for Propeller. If SimpleIDE could use Arduino code, with additional commands for the Propeller (cog control, eeprom writing), it would be much more accessible. Of course, pin values, pin masks, AnalogRead calls, etc. would have to be modified(unless AnalogRead would automatically try and find an ADC). There also would be a problem of RAM and EEPROM space, and the necessity of adding the crystal frequency to the code. However, if this works, people would flock to the Propeller chip, seeing as it would be able to use Arduino code, it's faster than the Arduino, and it's more versatile.
Comments
I never tried it myself, but I've heard good things about it. Especially when combined with the Propeller ASC+.
Also attached is the "blink-weknow" project folder. Unzip it and open the project with SimpleIDE. Add LED to D13. Load RAM and run.
Blink blink blink.
https://github.com/Martin-H1/libArduino
I've decided that it would be great if libPropelleruino finally found its way into PropWare. I've done the necessary work to make that happen, but I can't quite commit my changes until a couple things are fixed in the library. I've attached a patch file with the changes I had to make. Any chance you could review and then apply them? There are some whitespace-only changes that you might (or might not?) ignore though - sorry. I have my IDE set to trim extra whitespace on save.