Lesson 2: Event

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"			}		}	]}