color dropdown for color sensor (#324)
@ -19,22 +19,22 @@ enum LightIntensityMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const enum ColorSensorColor {
|
const enum ColorSensorColor {
|
||||||
//% block="none"
|
//% block="none" jres=colors.none
|
||||||
None,
|
None,
|
||||||
//% block="black"
|
//% block="black" jres=colors.black
|
||||||
Black,
|
Black,
|
||||||
//% block="blue"
|
//% block="blue" jres=colors.blue
|
||||||
Blue,
|
Blue,
|
||||||
//% block="green"
|
//% block="green" jres=colors.green
|
||||||
Green,
|
Green,
|
||||||
//% block="yellow"
|
//% block="yellow" jres=colors.yellow
|
||||||
Yellow,
|
Yellow,
|
||||||
//% block="red"
|
//% block="red" jres=colors.red
|
||||||
Red,
|
Red,
|
||||||
//% block="white"
|
//% block="white" jres=colors.white
|
||||||
White,
|
White,
|
||||||
//% block="brown"
|
//% block="brown" jres=colors.brown
|
||||||
Brown,
|
Brown
|
||||||
}
|
}
|
||||||
|
|
||||||
enum LightCondition {
|
enum LightCondition {
|
||||||
@ -117,6 +117,11 @@ namespace sensors {
|
|||||||
//% sensor.fieldEditor="ports"
|
//% sensor.fieldEditor="ports"
|
||||||
//% weight=100 blockGap=12
|
//% weight=100 blockGap=12
|
||||||
//% group="Color Sensor"
|
//% 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) {
|
onColorDetected(color: ColorSensorColor, handler: () => void) {
|
||||||
this.setMode(ColorSensorMode.Color)
|
this.setMode(ColorSensorMode.Color)
|
||||||
const v = this._colorEventValue(<number>color);
|
const v = this._colorEventValue(<number>color);
|
||||||
@ -137,6 +142,11 @@ namespace sensors {
|
|||||||
//% sensor.fieldEditor="ports"
|
//% sensor.fieldEditor="ports"
|
||||||
//% weight=99 blockGap=8
|
//% weight=99 blockGap=8
|
||||||
//% group="Color Sensor"
|
//% 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) {
|
pauseForColor(color: ColorSensorColor) {
|
||||||
this.setMode(ColorSensorMode.Color);
|
this.setMode(ColorSensorMode.Color);
|
||||||
if (this.color() != color) {
|
if (this.color() != color) {
|
||||||
|
30
libs/color-sensor/colors.jres
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"*": {
|
||||||
|
"namespace": "colors",
|
||||||
|
"dataEncoding": "base64"
|
||||||
|
},
|
||||||
|
"black": {
|
||||||
|
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAszD0iAAAAQB0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AFP3ByUAAAAJcEhZcwAADsIAAA7CARUoSoAAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAALklEQVRYR+3MQQ0AIAADMfybHjkN/EgroGePBIIIBBEIIhBEIIhAEIEggg+C7QKnC/DiLFihnAAAAABJRU5ErkJggg=="
|
||||||
|
},
|
||||||
|
"red": {
|
||||||
|
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMAUExURf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH8gKTMAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMjHxIGmVAAAAG0lEQVRYR+3BgQAAAADDoPlT3+AEVQAAAABXDRBAAAFce08FAAAAAElFTkSuQmCC"
|
||||||
|
}
|
||||||
|
}
|
BIN
libs/color-sensor/jres/colors/black-icon.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
libs/color-sensor/jres/colors/blue-icon.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
libs/color-sensor/jres/colors/brown-icon.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
libs/color-sensor/jres/colors/green-icon.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
libs/color-sensor/jres/colors/none-icon.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
libs/color-sensor/jres/colors/red-icon.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
libs/color-sensor/jres/colors/white-icon.png
Normal file
After Width: | Height: | Size: 951 B |
BIN
libs/color-sensor/jres/colors/yellow-icon.png
Normal file
After Width: | Height: | Size: 951 B |
@ -3,6 +3,7 @@
|
|||||||
"description": "Color Sensor support",
|
"description": "Color Sensor support",
|
||||||
"files": [
|
"files": [
|
||||||
"README.md",
|
"README.md",
|
||||||
|
"colors.jres",
|
||||||
"color.ts"
|
"color.ts"
|
||||||
],
|
],
|
||||||
"testFiles": [
|
"testFiles": [
|
||||||
|