-
• #2
Great - thanks! It's good to have some nice examples of using local modules...
-
• #3
Is there a simple example of how to make and use snippets when using the webIDE?
-
• #4
Load WebIDE and connect to a board.
Click on the gear icon
Click on projects
Take the snippets tour -
• #5
Just what I needed. Thank you very much.
Setting up a project in WebIDE
In the upper right click on the gear icon and then select project.
Click on Select Directory for Sandbox.
I created a directory called EP1.
If you use Windows Explorer to examine the EP1 directory you will find several sub directories created by WebIDE named:
EP1
Projects
Modules
Binary
Firmware
Snippets
Testing
Testinglog
All are empty except for one txt file in snippets.
Copy the attached file testAdd.js into the projects folder.
Copy the attached file Add.js into the modules folder.
Load the file testAdd.js from EP1/Projects into the right side of the WebIDE.
Connect to the Espruino device and the run the program.
The testAdd.js code:
The output:
The module code in Add.js
For you to try:
Also attached is an upgraded module timeobj.js and a project file testTimeObj.js.
http://forum.espruino.com/conversations/286378/
The output of testTimeObj.js
The code in TestTimeObj.js
4 Attachments