This code, when we start it, what it executes are two actions, one is to turn on a white LED and the other function is to make a sound, when this code is executed, these two actions will be done at the same time.
ELIO PLAY JSON code
{ "do": [ { "light": { "brightness": 100, "color": 1, "duration": 1, "led": 0 } }, { "sound": { "frequency": 440, "volume": 2 } } ]}
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: