How to export a c/c++ module for Espruino? #7581
Unanswered
espruino-discuss
asked this question in
Other Board General Questions
Replies: 1 comment
-
Posted at 2017-03-22 by @gfwilliams Just opening this again to mention this page, which has your answer: https://github.com/espruino/Espruino/blob/master/libs/README.md Posted at 2017-03-22 by Aifer Thank you, Gordon. "type" : "library" , for a built-in module as a library, "type" : "class" , for a built-in module as a Object, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-03-22 by Aifer
How to expose a c/c++ module to Espruino JS?
For example, the jswrap_hello.c defines the 'Hello' class , it has a method 'world()', then we can do in Espruino:
How to expose 'Hello' as a module just like 'net' or 'Wifi'? I mean 'Hello' can be required like this:
or
Beta Was this translation helpful? Give feedback.
All reactions