Merge pull request #98 from Microsoft/portFixes
Fix order of color and ultrasonic sensor ports.
This commit is contained in:
		@@ -182,12 +182,12 @@ namespace sensors {
 | 
			
		||||
    //% whenUsed block="1" weight=95 fixedInstance jres=icons.port1
 | 
			
		||||
    export const color1: ColorSensor = new ColorSensor(1)
 | 
			
		||||
    
 | 
			
		||||
    //% whenUsed block="3" weight=90 fixedInstance jres=icons.port3
 | 
			
		||||
    export const color3: ColorSensor = new ColorSensor(3)
 | 
			
		||||
    
 | 
			
		||||
    //% whenUsed block="2" weight=90 fixedInstance jres=icons.port2
 | 
			
		||||
    export const color2: ColorSensor = new ColorSensor(2)
 | 
			
		||||
 | 
			
		||||
    //% whenUsed block="3" weight=90 fixedInstance jres=icons.port3
 | 
			
		||||
    export const color3: ColorSensor = new ColorSensor(3)
 | 
			
		||||
 | 
			
		||||
    //% whenUsed block="4" weight=90 fixedInstance jres=icons.port4
 | 
			
		||||
    export const color4: ColorSensor = new ColorSensor(4)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -92,13 +92,13 @@ namespace sensors {
 | 
			
		||||
    
 | 
			
		||||
    //% fixedInstance whenUsed block="1" jres=icons.port1
 | 
			
		||||
    export const ultrasonic1: UltraSonicSensor = new UltraSonicSensor(1)
 | 
			
		||||
    
 | 
			
		||||
    //% fixedInstance whenUsed block="4" jres=icons.port4
 | 
			
		||||
    export const ultrasonic4: UltraSonicSensor = new UltraSonicSensor(4)
 | 
			
		||||
 | 
			
		||||
    //% fixedInstance whenUsed block="2" jres=icons.port2
 | 
			
		||||
    export const ultrasonic2: UltraSonicSensor = new UltraSonicSensor(2)
 | 
			
		||||
 | 
			
		||||
    //% fixedInstance whenUsed block="3" jres=icons.port3
 | 
			
		||||
    export const ultrasonic3: UltraSonicSensor = new UltraSonicSensor(3)
 | 
			
		||||
  
 | 
			
		||||
    //% fixedInstance whenUsed block="4" jres=icons.port4
 | 
			
		||||
    export const ultrasonic4: UltraSonicSensor = new UltraSonicSensor(4)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user