Testing plugin is designed as a simple GUI to support testing and quick&dirty presentations.
It supports a lot of functions, but it's not a full blown up GUI-Interface.
WebIDE would not be the right place for a sophisticated GUI, this should be done in a seperate application.
Testing supports 2 main functions. 1. Display values from Espruino board
WebIDE defines a function on Espruino, which creates and sends an JSON-Object and calls this function. Incoming data is interpreted and displayed as circle(alarm, warning,status), bar(0-100) or text(string or integer). 2. Actions sent to Espruino board
Clicking on the image sends data to Espruino. This can be assigning a value(number, boolean, string) or a command(e.g. calling a function). Commands are designed for short snippets right now, this could possibly be changed(from textbox to textarea).
Definition of display and actions is stored locally, in a subfolder of local project folder (see link to tours in project part of options). Format is JSON see example:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Testing plugin is designed as a simple GUI to support testing and quick&dirty presentations.
It supports a lot of functions, but it's not a full blown up GUI-Interface.
WebIDE would not be the right place for a sophisticated GUI, this should be done in a seperate application.
Testing supports 2 main functions.
1. Display values from Espruino board
WebIDE defines a function on Espruino, which creates and sends an JSON-Object and calls this function. Incoming data is interpreted and displayed as circle(alarm, warning,status), bar(0-100) or text(string or integer).
2. Actions sent to Espruino board
Clicking on the image sends data to Espruino. This can be assigning a value(number, boolean, string) or a command(e.g. calling a function). Commands are designed for short snippets right now, this could possibly be changed(from textbox to textarea).
Definition of display and actions is stored locally, in a subfolder of local project folder (see link to tours in project part of options). Format is JSON see example: