Wiring Touch Sensor and Light Sensor Together
Glossary Item Box
Now you will capture notifications from the NxtTouchSensor every time the Touch Sensor is pressed or released. You will use this value to turn the flashlight on or off.
Select the round notification pin on the NxtTouchSensor and drag it on to the NxtLightSensor. This indicates that you will capture notifications from the Touch Sensor and send them to the Light Sensor.
This will open the Connections dialog. Select From the TouchSensorUpdate notification and send it To the SpotlightUpdate. Click OK.
Next, the Data Connections dialog is displayed. You need to describe the data which will be sent to the SpotlightUpdate. Select TouchSensorOn and click OK.
© 2012 Microsoft Corporation. All Rights Reserved.