is there a firmata library in the works? #997
Replies: 3 comments
-
Posted at 2014-02-21 by hansamann you're right, no need for firmata. If I can directly call any function that is even better. I just realized I can connect via CoolTerm on Mac for example and type function calls. This is super sweet, because now I can write a Node.js app that connects over serial easily. thx for helping me realize :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by @gfwilliams Cool, there's a bit of info on interfacing here: www.espruino.com/Interfacing But if you're using node you can hopefully just use node-serialport... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-09-05 by user93837 I was thinking something like https://github.com/firmata/firmata.js that would let you control an attached firmata-flashed-arduino... Just think of the possibilities of a slave Arduino mega (or 3)... I certainly am going to investigate porting at my earliest convenience... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-02-21 by @gfwilliams
No, there isn't.
Espruino already has its own protocol for telling it to turn things on and off - it's called JavaScript :) Instead of sending the binary 'firmata protocol' over serial to it, you just send JavaScript commands like
digitalWrite(LED1,1)\n
.I guess if someone wanted to write a wrapper for the PC end that sent JavaScript instead of the firmata protocol, that could be done - but to be honest that's just taking something really neat and making it no better than a $5 arduino clone :)
Beta Was this translation helpful? Give feedback.
All reactions