updated descriptions
This commit is contained in:
parent
3690f409b0
commit
4a8633f506
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"sensors.ColorSensor": "The color sensor is a digital sensor that can detect the color or intensity\nof light that enters the small window on the face of the sensor.",
|
"sensors.ColorSensor": "The color sensor is a digital sensor that can detect the color or intensity\nof light that enters the small window on the face of the sensor.",
|
||||||
"sensors.ColorSensor.ambientLight": "Get current ambient light value from the color sensor.",
|
"sensors.ColorSensor.ambientLight": "Measures the ambient light value from 0 (darkest) to 100 (brightest).",
|
||||||
"sensors.ColorSensor.color": "Get the current color from the color sensor.",
|
"sensors.ColorSensor.color": "Get the current color from the color sensor.",
|
||||||
"sensors.ColorSensor.colorMode": "Gets the current color mode",
|
"sensors.ColorSensor.colorMode": "Gets the current color mode",
|
||||||
"sensors.ColorSensor.onColorDetected": "Registers code to run when the given color is detected.",
|
"sensors.ColorSensor.onColorDetected": "Registers code to run when the given color is detected.",
|
||||||
"sensors.ColorSensor.onColorDetected|param|color": "the color to detect, eg: ColorSensorColor.Blue",
|
"sensors.ColorSensor.onColorDetected|param|color": "the color to detect, eg: ColorSensorColor.Blue",
|
||||||
"sensors.ColorSensor.onColorDetected|param|handler": "the code to run when detected",
|
"sensors.ColorSensor.onColorDetected|param|handler": "the code to run when detected",
|
||||||
"sensors.ColorSensor.reflectedLight": "Get current reflected light value from the color sensor."
|
"sensors.ColorSensor.reflectedLight": "Measures the reflected light value from 0 (darkest) to 100 (brightest)."
|
||||||
}
|
}
|
@ -104,8 +104,8 @@ namespace sensors {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get current ambient light value from the color sensor.
|
* Measures the ambient light value from 0 (darkest) to 100 (brightest).
|
||||||
* @param color the color sensor to query the request
|
* @param color the color sensor port
|
||||||
*/
|
*/
|
||||||
//% help=sensors/color-sensor/ambient-light
|
//% help=sensors/color-sensor/ambient-light
|
||||||
//% block="`icons.colorSensor` %color| ambient light"
|
//% block="`icons.colorSensor` %color| ambient light"
|
||||||
@ -120,8 +120,8 @@ namespace sensors {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get current reflected light value from the color sensor.
|
* Measures the reflected light value from 0 (darkest) to 100 (brightest).
|
||||||
* @param color the color sensor to query the request
|
* @param color the color sensor port
|
||||||
*/
|
*/
|
||||||
//% help=sensors/color-sensor/reflected-light
|
//% help=sensors/color-sensor/reflected-light
|
||||||
//% block="`icons.colorSensor` %color| reflected light"
|
//% block="`icons.colorSensor` %color| reflected light"
|
||||||
|
Loading…
Reference in New Issue
Block a user