-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to spark-core or esp-8266 #47
Comments
Hi, Tim, and thanks for your note. If you already have a wiring port available, most of the work will be sorting out the header file includes to be correct for your platform. As you’ve already found, avr.h is included, but you don’t want that. Have a look in src/bitlash.h and you will see several chunks of code which configure for different platforms. You’ll need to do something similar. You’ll probably need to add an #ifdef for your platform and include the wiring header files. You’ll also need to #ifdef out the avr stuff. I hope that helps. Let me know if you hit a snag. Kind regards, -br
|
Hi Tim, did you get any further? It would be cool if we could make Bitlash ESP8266-compatible. Let me know if you need some help (here or in esp8266 gitter chat). |
bitlash makes a lot of avr and arduino assumptions. I'm currently working on a language kinda like bitlash, but developing for esp chips first. I have one based on esp8266/Arduino and am starting one using esp-open-sdk directly. https://github.com/creationix/uscript |
Maybe ESP8266 and Spark go a bit out of scope of Bitlash but I think official ARM-based Arduino boards (Due and Zero at the moment) should be default-supported. |
OTOH, on ARM/ESP8266 boards, you also have Espruino as an alternative. This On Thu, Aug 20, 2015 at 7:12 PM, Osqui LittleRiver <[email protected]
|
@tochinet well yes, and esp8266 in particular has a popular elua port called nodemcu, but it's not the same category as bitlash. I'm looking for a simpler language. |
If you wana experience micropython in esp8266 you can find something in |
I would love to use bitlash on my various wifi-enabled development boards. They all have a port of arduino's wireing which I imagine is most the work porting bitlash, but I'm wondering what else would be required and if anyone has tried this before.
For example, when trying to import the bitlash header into an ESP8266 project using the Arduino IDE, I get errors about bitlash trying to include avr.h.
I'd be willing to do the work to port what's left, but I'm looking for some guidance.
The text was updated successfully, but these errors were encountered: