diff --git a/libs/color-sensor/color.ts b/libs/color-sensor/color.ts index 1431a131..0a3c027c 100644 --- a/libs/color-sensor/color.ts +++ b/libs/color-sensor/color.ts @@ -19,22 +19,22 @@ enum LightIntensityMode { } const enum ColorSensorColor { - //% block="none" + //% block="none" jres=colors.none None, - //% block="black" + //% block="black" jres=colors.black Black, - //% block="blue" + //% block="blue" jres=colors.blue Blue, - //% block="green" + //% block="green" jres=colors.green Green, - //% block="yellow" + //% block="yellow" jres=colors.yellow Yellow, - //% block="red" + //% block="red" jres=colors.red Red, - //% block="white" + //% block="white" jres=colors.white White, - //% block="brown" - Brown, + //% block="brown" jres=colors.brown + Brown } enum LightCondition { @@ -117,6 +117,11 @@ namespace sensors { //% sensor.fieldEditor="ports" //% weight=100 blockGap=12 //% group="Color Sensor" + //% color.fieldEditor="gridpicker" + //% color.fieldOptions.columns=4 + //% color.fieldOptions.tooltips=true + //% color.fieldOptions.hideRect=true + //% color.fieldOptions.width=268 onColorDetected(color: ColorSensorColor, handler: () => void) { this.setMode(ColorSensorMode.Color) const v = this._colorEventValue(color); @@ -137,6 +142,11 @@ namespace sensors { //% sensor.fieldEditor="ports" //% weight=99 blockGap=8 //% group="Color Sensor" + //% color.fieldEditor="gridpicker" + //% color.fieldOptions.columns=4 + //% color.fieldOptions.tooltips=true + //% color.fieldOptions.hideRect=true + //% color.fieldOptions.width=268 pauseForColor(color: ColorSensorColor) { this.setMode(ColorSensorMode.Color); if (this.color() != color) { diff --git a/libs/color-sensor/colors.jres b/libs/color-sensor/colors.jres new file mode 100644 index 00000000..6758cc16 --- /dev/null +++ b/libs/color-sensor/colors.jres @@ -0,0 +1,30 @@ +{ + "*": { + "namespace": "colors", + "dataEncoding": "base64" + }, + "black": { + "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAszD0iAAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAALklEQVRYR+3MQQ0AIAADMfybHjkN/EgroGePBIIIBBEIIhBEIIhAEIEggg+C7QKnC/DiLFihnAAAAABJRU5ErkJggg==" + }, + "red": { + "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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index 00000000..1153ccb5 Binary files /dev/null and b/libs/color-sensor/jres/colors/black-icon.png differ diff --git a/libs/color-sensor/jres/colors/blue-icon.png b/libs/color-sensor/jres/colors/blue-icon.png new file mode 100644 index 00000000..a43b0a12 Binary files /dev/null and b/libs/color-sensor/jres/colors/blue-icon.png differ diff --git a/libs/color-sensor/jres/colors/brown-icon.png b/libs/color-sensor/jres/colors/brown-icon.png new file mode 100644 index 00000000..81f05579 Binary files /dev/null and b/libs/color-sensor/jres/colors/brown-icon.png differ diff --git a/libs/color-sensor/jres/colors/green-icon.png b/libs/color-sensor/jres/colors/green-icon.png new file mode 100644 index 00000000..ca9ac618 Binary files /dev/null and b/libs/color-sensor/jres/colors/green-icon.png differ diff --git a/libs/color-sensor/jres/colors/none-icon.png b/libs/color-sensor/jres/colors/none-icon.png new file mode 100644 index 00000000..51fd8ca7 Binary files /dev/null and b/libs/color-sensor/jres/colors/none-icon.png differ diff --git a/libs/color-sensor/jres/colors/red-icon.png b/libs/color-sensor/jres/colors/red-icon.png new file mode 100644 index 00000000..62e64ff4 Binary files /dev/null and b/libs/color-sensor/jres/colors/red-icon.png differ diff --git a/libs/color-sensor/jres/colors/white-icon.png b/libs/color-sensor/jres/colors/white-icon.png new file mode 100644 index 00000000..a3f1c7e0 Binary files /dev/null and b/libs/color-sensor/jres/colors/white-icon.png differ diff --git a/libs/color-sensor/jres/colors/yellow-icon.png b/libs/color-sensor/jres/colors/yellow-icon.png new file mode 100644 index 00000000..7e1cfd6f Binary files /dev/null and b/libs/color-sensor/jres/colors/yellow-icon.png differ diff --git a/libs/color-sensor/pxt.json b/libs/color-sensor/pxt.json index 0465015e..e332d12f 100644 --- a/libs/color-sensor/pxt.json +++ b/libs/color-sensor/pxt.json @@ -3,6 +3,7 @@ "description": "Color Sensor support", "files": [ "README.md", + "colors.jres", "color.ts" ], "testFiles": [