Functions for accessing and modifying input module features. More...
Defines | |
| #define | SetSensorType(_port, _t) setin _t, _port, TypeField |
| Set sensor type. | |
| #define | SetSensorMode(_port, _m) setin _m, _port, InputModeField |
| Set sensor mode. | |
| #define | ReadSensor(_port, _value) getin _value, _port, ScaledValueField |
| Read sensor scaled value. | |
| #define | ClearSensor(_port) setin 0, _port, ScaledValueField |
| Clear a sensor value. | |
| #define | SetSensorTouch(_port) __SetSensorTouch(_port) |
| Configure a touch sensor. | |
| #define | SetSensorLight(_port) __SetSensorLight(_port) |
| Configure a light sensor. | |
| #define | SetSensorSound(_port) __SetSensorSound(_port) |
| Configure a sound sensor. | |
| #define | SetSensorLowspeed(_port) __SetSensorLowspeed(_port) |
| Configure an I2C sensor. | |
| #define | SetSensorUltrasonic(_port) __SetSensorLowspeed(_port) |
| Configure an ultrasonic sensor. | |
| #define | SetSensorEMeter(_port) __SetSensorLowspeed(_port) |
| Configure an EMeter sensor. | |
| #define | SetSensorTemperature(_port) |
| Configure a temperature sensor. | |
| #define | SetSensorColorFull(_port) __SetSensorColorFull(_port) |
| Configure an NXT 2.0 full color sensor. | |
| #define | SetSensorColorRed(_port) __SetSensorColorRed(_port) |
| Configure an NXT 2.0 red light sensor. | |
| #define | SetSensorColorGreen(_port) __SetSensorColorGreen(_port) |
| Configure an NXT 2.0 green light sensor. | |
| #define | SetSensorColorBlue(_port) __SetSensorColorBlue(_port) |
| Configure an NXT 2.0 blue light sensor. | |
| #define | SetSensorColorNone(_port) __SetSensorColorNone(_port) |
| Configure an NXT 2.0 no light sensor. | |
| #define | ResetSensor(_port) __ResetSensor(_port) |
| Reset the sensor port. | |
| #define | ReadSensorColorRaw(_port, _rawVals, _result) __ReadSensorColorRaw(_port, _rawVals, _result) |
| Read LEGO color sensor raw values. | |
| #define | ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result) __ReadSensorColorEx(_port, _colorval, _rawVals, _normVals, _scaledVals, _result) |
| Read LEGO color sensor extra. | |
| #define | GetInCustomZeroOffset(_p, _n) __GetInCustomZeroOffset(_p, _n) |
| Get the custom sensor zero offset. | |
| #define | GetInSensorBoolean(_p, _n) __GetInSensorBoolean(_p, _n) |
| Read sensor boolean value. | |
| #define | GetInDigiPinsDirection(_p, _n) __GetInDigiPinsDirection(_p, _n) |
| Read sensor digital pins direction. | |
| #define | GetInDigiPinsStatus(_p, _n) __GetInDigiPinsStatus(_p, _n) |
| Read sensor digital pins status. | |
| #define | GetInDigiPinsOutputLevel(_p, _n) __GetInDigiPinsOutputLevel(_p, _n) |
| Read sensor digital pins output level. | |
| #define | GetInCustomPercentFullScale(_p, _n) __GetInCustomPercentFullScale(_p, _n) |
| Get the custom sensor percent full scale. | |
| #define | GetInCustomActiveStatus(_p, _n) __GetInCustomActiveStatus(_p, _n) |
| Get the custom sensor active status. | |
| #define | GetInColorCalibration(_p, _np, _nc, _n) __GetInColorCalibration(_p, _np, _nc, _n) |
| Read a LEGO color sensor calibration point value. | |
| #define | GetInColorCalLimits(_p, _np, _n) __GetInColorCalLimits(_p, _np, _n) |
| Read a LEGO color sensor calibration limit value. | |
| #define | GetInColorADRaw(_p, _nc, _n) __GetInColorADRaw(_p, _nc, _n) |
| Read a LEGO color sensor AD raw value. | |
| #define | GetInColorSensorRaw(_p, _nc, _n) __GetInColorSensorRaw(_p, _nc, _n) |
| Read a LEGO color sensor raw value. | |
| #define | GetInColorSensorValue(_p, _nc, _n) __GetInColorSensorValue(_p, _nc, _n) |
| Read a LEGO color sensor scaled value. | |
| #define | GetInColorBoolean(_p, _nc, _n) __GetInColorBoolean(_p, _nc, _n) |
| Read a LEGO color sensor boolean value. | |
| #define | GetInColorCalibrationState(_p, _n) __GetInColorCalibrationState(_p, _n) |
| Read LEGO color sensor calibration state. | |
| #define | SetInCustomZeroOffset(_p, _n) __setInCustomZeroOffset(_p, _n) |
| Set custom zero offset. | |
| #define | SetInSensorBoolean(_p, _n) __setInSensorBoolean(_p, _n) |
| Set sensor boolean value. | |
| #define | SetInDigiPinsDirection(_p, _n) __setInDigiPinsDirection(_p, _n) |
| Set digital pins direction. | |
| #define | SetInDigiPinsStatus(_p, _n) __setInDigiPinsStatus(_p, _n) |
| Set digital pins status. | |
| #define | SetInDigiPinsOutputLevel(_p, _n) __setInDigiPinsOutputLevel(_p, _n) |
| Set digital pins output level. | |
| #define | SetInCustomPercentFullScale(_p, _n) __setInCustomPercentFullScale(_p, _n) |
| Set percent full scale. | |
| #define | SetInCustomActiveStatus(_p, _n) __setInCustomActiveStatus(_p, _n) |
| Set active status. | |
Functions for accessing and modifying input module features.
1.6.2