From bedd197fc52f52fbb260d6940bf6b0b8d8dbfc6a Mon Sep 17 00:00:00 2001 From: xnkevinnguyen Date: Thu, 2 Apr 2020 18:15:18 -0700 Subject: [PATCH] Change range values --- .../components/toolbar/clue/ClueSensorProperties.tsx | 10 +++++----- src/view/translations/en.json | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/view/components/toolbar/clue/ClueSensorProperties.tsx b/src/view/components/toolbar/clue/ClueSensorProperties.tsx index 7aaf17a27..fc058559e 100644 --- a/src/view/components/toolbar/clue/ClueSensorProperties.tsx +++ b/src/view/components/toolbar/clue/ClueSensorProperties.tsx @@ -61,13 +61,13 @@ export const CLUE__PROXIMITY_PROPERTIES: ISensorProps = { { axisLabel: "P", maxLabel: "Max", - maxValue: 100, + maxValue: 255, minLabel: "Min", minValue: 0, type: SENSOR_LIST.PROXIMITY, }, ], - unitLabel: "%", + unitLabel: "", }; export const CLUE_PRESSURE_PROPERTIES: ISensorProps = { LABEL: "Humidity Sensor", @@ -75,11 +75,11 @@ export const CLUE_PRESSURE_PROPERTIES: ISensorProps = { { axisLabel: "P", maxLabel: "Max", - maxValue: 100, + maxValue: 1100, minLabel: "Min", - minValue: 0, + minValue: 800, type: SENSOR_LIST.PRESSURE, }, ], - unitLabel: "%", + unitLabel: "hPa", }; diff --git a/src/view/translations/en.json b/src/view/translations/en.json index 038aae9ad..3d54e3927 100644 --- a/src/view/translations/en.json +++ b/src/view/translations/en.json @@ -31,7 +31,7 @@ "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!", "toolbar-temperature-sensor.description": "This sensor uses an NTC thermistor to sense temperature an calculate it with the analog voltage on analog pin #A9.", "toolbar-temperature-sensor.title": "Temperature Sensor", - "toolbar-temperature-sensor.tryItDescription": "You can set the temperature range from your code!", + "toolbar-temperature-sensor.tryItDescription": "You can set the temperature in degrees Celsius.", "toolbar-accelerometer-sensor.title": "Accelerometer", "toolbar-accelerometer-sensor.description": "An accelerometer measures the acceleration of your micro:bit; this component senses when the micro:bit is moved.", "toolbar-accelerometer-sensor.tryItDescription": "Set the acceleration with the sliders.", @@ -76,16 +76,16 @@ "toolbar-clue-sound-sensor.tryItDescription": "If you would like to see this sensor supported, please +1 the feature addition issue on GitHub!", "toolbar-clue-pressure-sensor.title": "Pressure", "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.", - "toolbar-clue-pressure-sensor.tryItDescription": "You can set the pressure here.", + "toolbar-clue-pressure-sensor.tryItDescription": "You can set the pressure here in hectoPascals (hPa).", "toolbar-clue-humidity-sensor.title": "Humidity", "toolbar-clue-humidity-sensor.description": "The SHT30-D sensor has an excellent ±2% relative humidity and ±0.5°C accuracy for most uses.", - "toolbar-clue-humidity-sensor.tryItDescription": "You can set the humidity % here.", + "toolbar-clue-humidity-sensor.tryItDescription": "You can set the humidity in percentage (%) here.", "toolbar-clue-gesture-sensor.title": "Gesture", "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. ", "toolbar-clue-gesture-sensor.tryItDescription": "Select a gesture and send it by clicking the button.", "toolbar-clue-proximity-sensor.title": "Proximity", "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.", - "toolbar-clue-proximity-sensor.tryItDescription": "You can set the proximity here.", + "toolbar-clue-proximity-sensor.tryItDescription": "Set relative proximity to the sensor in values from 0 - 255", "toolbar-clue-bluetooth.title": "Bluetooth", "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.", "toolbar-clue-bluetooth.tryItDescription": "If you would like to see this sensor supported, please +1 the feature addition issue on GitHub! ",