This code, as the main parameter you have is the function that when the elio changes position, everything that is indicated within is executed, in this case when it changes position, what is going to be executed is the lighting of an LED White color.

JSON code:

{	"do": [		{			"on": {				"do": [					{						"light": {							"brightness": 100,							"color": 1,							"duration": 1,							"led": 0						}					}				],				"event": "cubicPositionChanged"			}		}	]}
  • Lesson 3: Timer

    This tutorial contains the timer function, which what it does is indicate a series of parameters to indicate the time that the parameters are executed within the timer. In this case, the timer indicates that after 5 seconds, the LEDs turn on every 2 seconds, for a total of 3 times.JSON code:

    Read more