Skip to content

Commit

Permalink
Merge pull request #2 from CleoQc/thp
Browse files Browse the repository at this point in the history
Add "Add-On" next to outside sensor categories
  • Loading branch information
CleoQc authored Jan 4, 2019
2 parents 5b5a879 + ab57dc2 commit 7f6c593
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gigglebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ enum gigglebotPressureScale {


//% weight=99 color=#46BFB1 icon="\uf0d1"
//% groups='["other", "Line Follower", "Light Sensors", "Servo", "Distance Sensor", "Temperature Humidity Pressure", "On Board Sensors", "Voltage", "Firmware"]'
//% groups='["other", "Line Follower", "Light Sensors", "Servo", "Distance Sensor (Add-On)", "Temperature Humidity Pressure (Add-On)", "On Board Sensors", "Voltage", "Firmware"]'
namespace gigglebot {
/**
* Basic drive and sensor functionalities for GiggleBot
Expand Down Expand Up @@ -684,7 +684,7 @@ export function lightFollow(mode: gigglebotLightFollowMode = gigglebotLightFollo
*/
//% blockId="distanceSensorReadRangeContinuous" block="distance to obstacle (mm)"
//% advanced=true
//% group="Distance Sensor"
//% group="Distance Sensor (Add-On)"
export function distanceSensorReadRangeContinuous(): number {
if (distanceSensorInitDone == false) {
distanceSensorConfigure()
Expand All @@ -698,7 +698,7 @@ export function lightFollow(mode: gigglebotLightFollowMode = gigglebotLightFollo
* @param dist how many millimeters; eg: 100
*/
//% blockId="distanceSensorTestForObstacle" block="obstacle is %inequality| %dist| mm"
//% group="Distance Sensor"
//% group="Distance Sensor (Add-On)"
//% weight=30
export function distanceSensorTestForObstacle(inequality: gigglebotInequality, dist: number): boolean {
if (distanceSensorInitDone == false) {
Expand Down Expand Up @@ -767,7 +767,7 @@ export function lightFollow(mode: gigglebotLightFollowMode = gigglebotLightFollo
/**
* Get a temperature reading from the Temp/Humidity/Pressure sensor
*/
//% group="Temperature Humidity Pressure"
//% group="Temperature Humidity Pressure (Add-On)"
//% blockId="gigglebot_temperature" block="temperature in %scale"
export function temperature(scale: gigglebotTempScale): number {
if (thpSensorInitDone == false)
Expand All @@ -787,7 +787,7 @@ export function lightFollow(mode: gigglebotLightFollowMode = gigglebotLightFollo
/**
* Get an atmospheric humidity reading from the Temp/Humidity/Pressure sensor
*/
//% group="Temperature Humidity Pressure"
//% group="Temperature Humidity Pressure (Add-On)"
//% blockId="gigglebot_humidity" block="humidity"
export function humidity(): number {
if (thpSensorInitDone == false)
Expand All @@ -801,7 +801,7 @@ export function lightFollow(mode: gigglebotLightFollowMode = gigglebotLightFollo
/**
* Get an atmospheric pressure reading from the Temp/Humidity/Pressure sensor
*/
//% group="Temperature Humidity Pressure"
//% group="Temperature Humidity Pressure (Add-On)"
//% blockId="gigglebot_pressure" block="pressure in %pressureScale"
export function pressure(pressureScale: gigglebotPressureScale): number {
// call to read_temperature() to udpate temperature compensation
Expand All @@ -824,7 +824,7 @@ export function lightFollow(mode: gigglebotLightFollowMode = gigglebotLightFollo
/**
* Read Dew Point
*/
//% group="Temperature Humidity Pressure"
//% group="Temperature Humidity Pressure (Add-On)"
//% blockId="gigglebot_dewpoint" block="dew point in %scale"
//% advanced=true
export function dewPoint(scale: gigglebotTempScale): number {
Expand Down

0 comments on commit 7f6c593

Please sign in to comment.