Skip to content

Commit

Permalink
embed units in reading blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 16, 2022
1 parent 0e4d771 commit 9c38fed
Show file tree
Hide file tree
Showing 34 changed files with 43 additions and 43 deletions.
6 changes: 3 additions & 3 deletions accelerometer/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Movement"
//% block="%accelerometer x"
//% block="%accelerometer x (g)"
//% blockId=jacdac_accelerometer_forces_x_get
//% weight=100
x(): number {
Expand All @@ -52,7 +52,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Movement"
//% block="%accelerometer y"
//% block="%accelerometer y (g)"
//% blockId=jacdac_accelerometer_forces_y_get
//% weight=99
y(): number {
Expand All @@ -66,7 +66,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Movement"
//% block="%accelerometer z"
//% block="%accelerometer z (g)"
//% blockId=jacdac_accelerometer_forces_z_get
//% weight=98
z(): number {
Expand Down
2 changes: 1 addition & 1 deletion acidity/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%acidity acidity"
//% block="%acidity acidity (pH)"
//% blockId=jacdac_acidity_acidity___get
//% weight=100
acidity(): number {
Expand Down
2 changes: 1 addition & 1 deletion air-pressure/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%airpressure pressure"
//% block="%airpressure pressure (hPa)"
//% blockId=jacdac_airpressure_pressure___get
//% weight=100
pressure(): number {
Expand Down
2 changes: 1 addition & 1 deletion air-quality-index/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%airqualityindex aqi index"
//% block="%airqualityindex aqi index (AQI)"
//% blockId=jacdac_airqualityindex_aqi_index___get
//% weight=100
aqiIndex(): number {
Expand Down
6 changes: 3 additions & 3 deletions color/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%color red"
//% block="%color red (\\%)"
//% blockId=jacdac_color_color_red_get
//% weight=100
red(): number {
Expand All @@ -27,7 +27,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%color green"
//% block="%color green (\\%)"
//% blockId=jacdac_color_color_green_get
//% weight=99
green(): number {
Expand All @@ -41,7 +41,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%color blue"
//% block="%color blue (\\%)"
//% blockId=jacdac_color_color_blue_get
//% weight=98
blue(): number {
Expand Down
2 changes: 1 addition & 1 deletion compass/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Compass"
//% block="%compass heading"
//% block="%compass heading (°)"
//% blockId=jacdac_compass_heading___get
//% weight=100
heading(): number {
Expand Down
2 changes: 1 addition & 1 deletion dc-current-measurement/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace modules {
*/
//% callInDebugger
//% group="DC Current Measurement"
//% block="%dccurrentmeasurement measurement"
//% block="%dccurrentmeasurement measurement (A)"
//% blockId=jacdac_dccurrentmeasurement_measurement___get
//% weight=99
measurement(): number {
Expand Down
2 changes: 1 addition & 1 deletion dc-voltage-measurement/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace modules {
*/
//% callInDebugger
//% group="DC Voltage Measurement"
//% block="%dcvoltagemeasurement measurement"
//% block="%dcvoltagemeasurement measurement (V)"
//% blockId=jacdac_dcvoltagemeasurement_measurement___get
//% weight=98
measurement(): number {
Expand Down
2 changes: 1 addition & 1 deletion distance/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Distance"
//% block="%distance distance"
//% block="%distance distance (m)"
//% blockId=jacdac_distance_distance___get
//% weight=100
distance(): number {
Expand Down
2 changes: 1 addition & 1 deletion e-co2/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%eco2 e CO2"
//% block="%eco2 e CO2 (ppm)"
//% blockId=jacdac_eco2_e_CO2___get
//% weight=100
eCO2(): number {
Expand Down
2 changes: 1 addition & 1 deletion flex/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Sensor"
//% block="%flex bending"
//% block="%flex bending (\\%)"
//% blockId=jacdac_flex_bending___get
//% weight=100
bending(): number {
Expand Down
6 changes: 3 additions & 3 deletions gyroscope/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Movement"
//% block="%gyroscope x"
//% block="%gyroscope x (°/s)"
//% blockId=jacdac_gyroscope_rotation_rates_x_get
//% weight=100
x(): number {
Expand All @@ -52,7 +52,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Movement"
//% block="%gyroscope y"
//% block="%gyroscope y (°/s)"
//% blockId=jacdac_gyroscope_rotation_rates_y_get
//% weight=99
y(): number {
Expand All @@ -66,7 +66,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Movement"
//% block="%gyroscope z"
//% block="%gyroscope z (°/s)"
//% blockId=jacdac_gyroscope_rotation_rates_z_get
//% weight=98
z(): number {
Expand Down
2 changes: 1 addition & 1 deletion heart-rate/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Biometric"
//% block="%heartrate heart rate"
//% block="%heartrate heart rate (bpm)"
//% blockId=jacdac_heartrate_heart_rate___get
//% weight=100
heartRate(): number {
Expand Down
2 changes: 1 addition & 1 deletion humidity/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%humidity humidity"
//% block="%humidity humidity (%RH)"
//% blockId=jacdac_humidity_humidity___get
//% weight=100
humidity(): number {
Expand Down
2 changes: 1 addition & 1 deletion illuminance/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%illuminance illuminance"
//% block="%illuminance illuminance (lux)"
//% blockId=jacdac_illuminance_illuminance___get
//% weight=100
illuminance(): number {
Expand Down
2 changes: 1 addition & 1 deletion light-bulb/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Light"
//% block="%lightbulb brightness"
//% block="%lightbulb brightness (\\%)"
//% blockId=jacdac_lightbulb_brightness___get
//% weight=100
brightness(): number {
Expand Down
2 changes: 1 addition & 1 deletion light-level/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%lightlevel light level"
//% block="%lightlevel light level (\\%)"
//% blockId=jacdac_lightlevel_light_level___get
//% weight=100
lightLevel(): number {
Expand Down
2 changes: 1 addition & 1 deletion magnetic-field-level/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%magneticfieldlevel strength"
//% block="%magneticfieldlevel strength (\\%)"
//% blockId=jacdac_magneticfieldlevel_strength___get
//% weight=100
strength(): number {
Expand Down
6 changes: 3 additions & 3 deletions magnetometer/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Magnetometer"
//% block="%magnetomer x"
//% block="%magnetomer x (nT)"
//% blockId=jacdac_magnetomer_forces_x_get
//% weight=100
x(): number {
Expand All @@ -41,7 +41,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Magnetometer"
//% block="%magnetomer y"
//% block="%magnetomer y (nT)"
//% blockId=jacdac_magnetomer_forces_y_get
//% weight=99
y(): number {
Expand All @@ -56,7 +56,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Magnetometer"
//% block="%magnetomer z"
//% block="%magnetomer z (nT)"
//% blockId=jacdac_magnetomer_forces_z_get
//% weight=98
z(): number {
Expand Down
2 changes: 1 addition & 1 deletion potentiometer/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Slider"
//% block="%potentiometer position"
//% block="%potentiometer position (\\%)"
//% blockId=jacdac_potentiometer_position___get
//% weight=100
position(): number {
Expand Down
2 changes: 1 addition & 1 deletion power/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Power"
//% block="%power current draw"
//% block="%power current draw (mA)"
//% blockId=jacdac_power_current_draw___get
//% weight=95
currentDraw(): number {
Expand Down
2 changes: 1 addition & 1 deletion pulse-oximeter/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Biometric"
//% block="%pulseoximeter oxygen"
//% block="%pulseoximeter oxygen (%)"
//% blockId=jacdac_pulseoximeter_oxygen___get
//% weight=100
oxygen(): number {
Expand Down
2 changes: 1 addition & 1 deletion rain-gauge/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%raingauge precipitation"
//% block="%raingauge precipitation (mm)"
//% blockId=jacdac_raingauge_precipitation___get
//% weight=100
precipitation(): number {
Expand Down
2 changes: 1 addition & 1 deletion reflected-light/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%reflectedlight brightness"
//% block="%reflectedlight brightness (\\%)"
//% blockId=jacdac_reflectedlight_brightness___get
//% weight=100
brightness(): number {
Expand Down
4 changes: 2 additions & 2 deletions servo/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Servo"
//% block="%servo angle"
//% block="%servo angle (°)"
//% blockId=jacdac_servo_angle___get
//% weight=100
angle(): number {
Expand Down Expand Up @@ -256,7 +256,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Servo"
//% block="%servo actual angle"
//% block="%servo actual angle (°)"
//% blockId=jacdac_servo_actual_angle___get
//% weight=86
actualAngle(): number {
Expand Down
2 changes: 1 addition & 1 deletion soil-moisture/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%soilmoisture moisture"
//% block="%soilmoisture moisture (\\%)"
//% blockId=jacdac_soilmoisture_moisture___get
//% weight=100
moisture(): number {
Expand Down
2 changes: 1 addition & 1 deletion sound-level/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Sound"
//% block="%soundlevel sound level"
//% block="%soundlevel sound level (\\%)"
//% blockId=jacdac_soundlevel_sound_level___get
//% weight=100
soundLevel(): number {
Expand Down
2 changes: 1 addition & 1 deletion temperature/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%temperature temperature"
//% block="%temperature temperature (°C)"
//% blockId=jacdac_temperature_temperature___get
//% weight=100
temperature(): number {
Expand Down
2 changes: 1 addition & 1 deletion tvoc/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%tvoc TVOC"
//% block="%tvoc TVOC (ppb)"
//% blockId=jacdac_tvoc_TVOC___get
//% weight=100
tVOC(): number {
Expand Down
2 changes: 1 addition & 1 deletion uv-index/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%uvindex uv index"
//% block="%uvindex uv index (uv)"
//% blockId=jacdac_uvindex_uv_index___get
//% weight=100
uvIndex(): number {
Expand Down
2 changes: 1 addition & 1 deletion water-level/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Water level"
//% block="%waterlevel level"
//% block="%waterlevel level (\\%)"
//% blockId=jacdac_waterlevel_level___get
//% weight=100
level(): number {
Expand Down
2 changes: 1 addition & 1 deletion weight-scale/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Weight Scale"
//% block="%weightscale weight"
//% block="%weightscale weight (kg)"
//% blockId=jacdac_weightscale_weight___get
//% weight=100
weight(): number {
Expand Down
2 changes: 1 addition & 1 deletion wind-direction/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%winddirection wind direction"
//% block="%winddirection wind direction (°)"
//% blockId=jacdac_winddirection_wind_direction___get
//% weight=100
windDirection(): number {
Expand Down
2 changes: 1 addition & 1 deletion wind-speed/client.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace modules {
*/
//% callInDebugger
//% group="Environment"
//% block="%windspeed wind speed"
//% block="%windspeed wind speed (m/s)"
//% blockId=jacdac_windspeed_wind_speed___get
//% weight=100
windSpeed(): number {
Expand Down

0 comments on commit 9c38fed

Please sign in to comment.