Threshold to calibration (#495)

* renaming threshold to calibration

* rename threshold to calibration
This commit is contained in:
Peli de Halleux authored and Sam El-Husseini committed 2018-04-12 14:25:44 -07:00
1 parent 2c874570ce
commit bd06fb80f3
4 files changed
+15 -9

No files matched your search

+2 -2
View File
@@ -96,7 +96,7 @@ namespace sensors {
* @param value the value threshold
*/
//% blockId=ultrasonicSetThreshold block="set **ultrasonic** %this|%condition|to %value"
//% group="Threshold" blockGap=8 weight=80
//% group="Calibration" blockGap=8 weight=80
//% value.min=0 value.max=255
//% this.fieldEditor="ports"
setThreshold(condition: UltrasonicSensorEvent, value: number) {
@@ -111,7 +111,7 @@ namespace sensors {
* @param condition the proximity condition
*/
//% blockId=ultrasonicGetThreshold block="**ultrasonic** %this|%condition"
//% group="Threshold" blockGap=8 weight=79
//% group="Calibration" weight=79
//% this.fieldEditor="ports"
threshold(condition: UltrasonicSensorEvent): number {
switch (condition) {