Update sensebox-sensors.js
This commit is contained in:
		
							parent
							
								
									a5059f9369
								
							
						
					
					
						commit
						42595be9a4
					
				| @ -332,7 +332,7 @@ Blockly.Arduino.sensebox_sensor_ultrasonic_ranger = function () { | |||||||
|   `;
 |   `;
 | ||||||
|   Blockly.Arduino.definitions_[ |   Blockly.Arduino.definitions_[ | ||||||
|     "define_newPing" + port |     "define_newPing" + port | ||||||
|   ] = `NewPing sonar${port}(TRIGGER_PIN_${port}, ECHO_PIN_${port}, MAX_DISTANCE_${port})`; |   ] = `NewPing sonar${port}(TRIGGER_PIN_${port}, ECHO_PIN_${port}, MAX_DISTANCE_${port});`; | ||||||
|   var code; |   var code; | ||||||
|   code = `sonar${port}.ping_cm()`; |   code = `sonar${port}.ping_cm()`; | ||||||
|   return [code, Blockly.Arduino.ORDER_ATOMIC]; |   return [code, Blockly.Arduino.ORDER_ATOMIC]; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user