Skip to content
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

Open
creationix opened this issue Jun 15, 2015 · 7 comments
Open

Port to spark-core or esp-8266 #47

creationix opened this issue Jun 15, 2015 · 7 comments

Comments

@creationix
Copy link

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.

@billroy
Copy link
Owner

billroy commented Jun 16, 2015

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

On Jun 15, 2015, at 1:16 PM, Tim Caswell notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHub #47.

@igrr
Copy link

igrr commented Jul 24, 2015

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).
Thanks.

@creationix
Copy link
Author

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

@q2dg
Copy link

q2dg commented Aug 20, 2015

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.
Thanks anyway.

@tochinet
Copy link

OTOH, on ARM/ESP8266 boards, you also have Espruino as an alternative. This
gives you complete Javascript capabilities, much more than what bitlash
intended to do.

On Thu, Aug 20, 2015 at 7:12 PM, Osqui LittleRiver <notifications@github.com

wrote:

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.
Thanks anyway.


Reply to this email directly or view it on GitHub
#47 (comment).

@creationix
Copy link
Author

@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.

@ioeverything
Copy link

If you wana experience micropython in esp8266 you can find something in
https://github.com/micropython
http://docs.micropython.org/en/latest/esp8266/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants