Make it comm lesson (#331)
* integrating lego lesson * fixed link * adding various solutions * updatring to 3.4.6 * using play sound effect until done * revert pxtversion * fixing link
This commit is contained in:
@ -19,21 +19,21 @@ enum LightIntensityMode {
|
||||
}
|
||||
|
||||
const enum ColorSensorColor {
|
||||
//% block="none" jres=colors.none
|
||||
//% block="none" jres=colors.none blockIdentity=sensors.color
|
||||
None,
|
||||
//% block="black" jres=colors.black
|
||||
//% block="black" jres=colors.black blockIdentity=sensors.color
|
||||
Black,
|
||||
//% block="blue" jres=colors.blue
|
||||
//% block="blue" jres=colors.blue blockIdentity=sensors.color
|
||||
Blue,
|
||||
//% block="green" jres=colors.green
|
||||
//% block="green" jres=colors.green blockIdentity=sensors.color
|
||||
Green,
|
||||
//% block="yellow" jres=colors.yellow
|
||||
//% block="yellow" jres=colors.yellow blockIdentity=sensors.color
|
||||
Yellow,
|
||||
//% block="red" jres=colors.red
|
||||
//% block="red" jres=colors.red blockIdentity=sensors.color
|
||||
Red,
|
||||
//% block="white" jres=colors.white
|
||||
//% block="white" jres=colors.white blockIdentity=sensors.color
|
||||
White,
|
||||
//% block="brown" jres=colors.brown
|
||||
//% block="brown" jres=colors.brown blockIdentity=sensors.color
|
||||
Brown
|
||||
}
|
||||
|
||||
@ -318,6 +318,11 @@ namespace sensors {
|
||||
//% blockId=colorSensorColor block="color %color"
|
||||
//% group="Color Sensor"
|
||||
//% weight=97
|
||||
//% color.fieldEditor="gridpicker"
|
||||
//% color.fieldOptions.columns=4
|
||||
//% color.fieldOptions.tooltips=true
|
||||
//% color.fieldOptions.hideRect=true
|
||||
//% color.fieldOptions.width=268
|
||||
export function color(color: ColorSensorColor): ColorSensorColor {
|
||||
return color;
|
||||
}
|
||||
|
Reference in New Issue
Block a user