Export (0) Print
Expand All

Wiring Touch Sensor and Light Sensor Together

Microsoft Robotics

Glossary Item Box

Microsoft Robotics Developer StudioSend feedback on this topic

Wiring Touch Sensor and Light Sensor Together

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.

Bb870542.Walkthrough0009(en-us,MSDN.10).png

This will open the Connections dialog.  Select From the TouchSensorUpdate notification and send it To the SpotlightUpdate.  Click OK.

Bb870542.Walkthrough0010(en-us,MSDN.10).png

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.

Bb870542.Walkthrough0011(en-us,MSDN.10).png

 

 

© 2012 Microsoft Corporation. All Rights Reserved.

Show:
© 2015 Microsoft