The LEGO Group. (n.d.). Christmas tree™. Retrieved 2022, from https://www.lego.com/en-nl/product/christmas-tree-40573
The [Christmas Tree] (https://www.lego.com/en-nl/product/christmas-tree-40573) The lighting of the Christmas tree will work according to color brightness. To make it work, we are going to use a color sensor. Input will be color brightness to the sensor. Output led bulb will light.
Christmas tree will require two output ports on an EV3 brain.
The only output port(blub) will be attached to an EV3 brain.
Status: Can be set to "on" or "off". When on {"status": "off"} 25% Dark automatically on by the sensor.
Christmas tree turns on light by a sensor
In this example, the location is only available when recently requested:
If ( sensor > 25){ turn off light}
else (sensor <= 25){ turn on light}