C/C++ With Espruino #5896
Replies: 1 comment
-
Posted at 2018-01-03 by asez73 Hello and hapy new year, Posted at 2018-01-03 by DrAzzy That said, writing javascript instead of C/C++, and all the things that come with doing that is the whole point of Espruino. If you want to write C/C++ instead of javascript, why are you using Espruino? There's nothing special about the hardware - it can be programmed with whatever you'd normally use for programming the mcu (what this is depends on which board, and I don't know it off the top of my head) - but this is a sort of silly thing to do, since you pay a large premium on the boards to get official and responsive support for the Espruino interpreter. Posted at 2018-01-03 by user84673 Thanks for the reply. The thing that looks attractive about Espruine is that it has new hardware modules that I can not find in similar module? is this correct or am I missing something here? For examples all there hardware modules and the recent Seeed Wio LTE? https://www.espruino.com/Modules Posted at 2018-01-03 by user84673 and in addition, according to Espruino, many of the modules are low-power consumption compared to others. This makes it more attractive for wireless modules and applications, or battery-powered applications Posted at 2018-01-04 by @gfwilliams The modules at https://www.espruino.com/Modules are actually code that is written in JavaScript, to allow you to use pre-existing bits of hardware with low power consumption. Espruino doesn't draw much power specifically because of its use of JavaScript. You could write in C/C++, but then you wouldn't be able to lose those modules so you wouldn't be better off than if you had used some other board. Another option is to use Espruino, but to then write extensions for it in C/C++ - but it sounds like that might not be what you want. Posted at 2018-01-04 by user84673 Thanks Gordon . The below are hardware modules and not a software module? right? my point is that, irrespective of using Java or C/C++, these hardware module are good collections to use in many applications and some of these hardware can have low-power consumption. https://www.espruino.com/Modules Existing Modules Posted at 2018-01-04 by PaddeK Those Modules are software to drive/use the respective hardware modules. For Example: Posted at 2018-01-04 by user84673 Paddek: For example: Posted at 2018-01-04 by PaddeK Yes most of the modules have extensive documentation how to connect the hardware and example code. I edited my previous post with an example to further show the differences but you were to fast answering :D Posted at 2018-01-04 by user84673 right...Thanks Posted at 2018-03-20 by MaksR Hi. The Espruino extension in C/C++is required. How to get the system time that get gettime (), but in C++? Posted at 2018-03-20 by @gfwilliams
Posted at 2018-03-20 by MaksR probably, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-01-03 by user84673
Instead of using Java, can I use a native C/C++ programming language?
I understand I might not be able to use Web ID, but that is OK.... is using C/C++ possible?
Beta Was this translation helpful? Give feedback.
All reactions