pxt-ev3/docs/coding/light-the-way-1.md
2018-01-05 19:14:55 -08:00

226 B

Light the way Activity 1

sensors.color3.onLightChanged(LightIntensityMode.Ambient, LightCondition.Dark, function () {
    brick.showImage(images.objectsLightOn)
    loops.pause(5000)
    brick.clearScreen()
})