Match Color Sensor ports in the 'Try' tutorial (#689)
This commit is contained in:
		
				
					committed by
					
						
						Peli de Halleux
					
				
			
			
				
	
			
			
			
						parent
						
							0f7ec45db4
						
					
				
				
					commit
					304cbb5ee3
				
			@@ -135,15 +135,15 @@ Keeping the Large Motor connected to **Port D**, connect the Color Sensor to **P
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```blocks
 | 
					```blocks
 | 
				
			||||||
brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () {
 | 
					brick.buttonEnter.onEvent(ButtonEvent.Pressed, function () {
 | 
				
			||||||
    sensors.color3.pauseUntilColorDetected(ColorSensorColor.Green)
 | 
					    sensors.color4.pauseUntilColorDetected(ColorSensorColor.Green)
 | 
				
			||||||
    motors.largeD.run(50, 1, MoveUnit.Rotations)
 | 
					    motors.largeD.run(50, 1, MoveUnit.Rotations)
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Using the same program, replace the ``||sensors:pause until touch 1||`` block with a ``||sensors:pause color sensor 3||`` for color block.
 | 
					* Using the same program, replace the ``||sensors:pause until touch 1||`` block with a ``||sensors:pause color sensor 4||`` for color block.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```block
 | 
					```block
 | 
				
			||||||
sensors.color3.pauseUntilColorDetected(ColorSensorColor.Green)
 | 
					sensors.color4.pauseUntilColorDetected(ColorSensorColor.Green)
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Select the color you want to detect (e.g., green).
 | 
					* Select the color you want to detect (e.g., green).
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user