Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit bedd197

Browse files
committed
Change range values
1 parent db67d0d commit bedd197

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/view/components/toolbar/clue/ClueSensorProperties.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,25 @@ export const CLUE__PROXIMITY_PROPERTIES: ISensorProps = {
6161
{
6262
axisLabel: "P",
6363
maxLabel: "Max",
64-
maxValue: 100,
64+
maxValue: 255,
6565
minLabel: "Min",
6666
minValue: 0,
6767
type: SENSOR_LIST.PROXIMITY,
6868
},
6969
],
70-
unitLabel: "%",
70+
unitLabel: "",
7171
};
7272
export const CLUE_PRESSURE_PROPERTIES: ISensorProps = {
7373
LABEL: "Humidity Sensor",
7474
sliderProps: [
7575
{
7676
axisLabel: "P",
7777
maxLabel: "Max",
78-
maxValue: 100,
78+
maxValue: 1100,
7979
minLabel: "Min",
80-
minValue: 0,
80+
minValue: 800,
8181
type: SENSOR_LIST.PRESSURE,
8282
},
8383
],
84-
unitLabel: "%",
84+
unitLabel: "hPa",
8585
};

src/view/translations/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"toolbar-speaker.tryItDescription": "Right now the tones are not supported on the simulator. If you would like to see tones implemented, please +1 the feature addition issue on GitHub! Regardless, you can play it on your device!",
3232
"toolbar-temperature-sensor.description": "This sensor uses an NTC thermistor to sense temperature an calculate it with the analog voltage on analog pin #A9.",
3333
"toolbar-temperature-sensor.title": "Temperature Sensor",
34-
"toolbar-temperature-sensor.tryItDescription": "You can set the temperature range from your code!",
34+
"toolbar-temperature-sensor.tryItDescription": "You can set the temperature in degrees Celsius.",
3535
"toolbar-accelerometer-sensor.title": "Accelerometer",
3636
"toolbar-accelerometer-sensor.description": "An accelerometer measures the acceleration of your micro:bit; this component senses when the micro:bit is moved.",
3737
"toolbar-accelerometer-sensor.tryItDescription": "Set the acceleration with the sliders.",
@@ -76,16 +76,16 @@
7676
"toolbar-clue-sound-sensor.tryItDescription": "If you would like to see this sensor supported, please +1 the feature addition issue on GitHub!",
7777
"toolbar-clue-pressure-sensor.title": "Pressure",
7878
"toolbar-clue-pressure-sensor.description": "CLUE uses the BMP280 sensor for barometric pressure. Because pressure changes with altitude, and the pressure measurements are so good, you can also use it as an altimeter with ±1 meter accuracy.",
79-
"toolbar-clue-pressure-sensor.tryItDescription": "You can set the pressure here.",
79+
"toolbar-clue-pressure-sensor.tryItDescription": "You can set the pressure here in hectoPascals (hPa).",
8080
"toolbar-clue-humidity-sensor.title": "Humidity",
8181
"toolbar-clue-humidity-sensor.description": "The SHT30-D sensor has an excellent ±2% relative humidity and ±0.5°C accuracy for most uses.",
82-
"toolbar-clue-humidity-sensor.tryItDescription": "You can set the humidity % here.",
82+
"toolbar-clue-humidity-sensor.tryItDescription": "You can set the humidity in percentage (%) here.",
8383
"toolbar-clue-gesture-sensor.title": "Gesture",
8484
"toolbar-clue-gesture-sensor.description": "The gesture sensor can detect directional gestures (left to right, right to left, up to down, down to up), but in theory more complicated gestures like zig-zag, clockwise or counterclockwise circle, near to far, etc. could also be detected with additional code. ",
8585
"toolbar-clue-gesture-sensor.tryItDescription": "Select a gesture and send it by clicking the button.",
8686
"toolbar-clue-proximity-sensor.title": "Proximity",
8787
"toolbar-clue-proximity-sensor.description": "The proximity sensor uses APDS9960 and is able to return how close an object is to the front of the sensor.",
88-
"toolbar-clue-proximity-sensor.tryItDescription": "You can set the proximity here.",
88+
"toolbar-clue-proximity-sensor.tryItDescription": "Set relative proximity to the sensor in values from 0 - 255",
8989
"toolbar-clue-bluetooth.title": "Bluetooth",
9090
"toolbar-clue-bluetooth.description": "You can transmit data over Bluetooth to a computer or mobile device for data plotting and logging, or save it to the built in storage.",
9191
"toolbar-clue-bluetooth.tryItDescription": "If you would like to see this sensor supported, please +1 the feature addition issue on GitHub! ",

0 commit comments

Comments
 (0)