port.setTypeAndMode(\r
(floodlight ? TYPE_LIGHT_ACTIVE\r
: TYPE_LIGHT_INACTIVE),\r
- MODE_PCTFULLSCALE);\r
- \r
- \r
+ MODE_PCTFULLSCALE); \r
}\r
\r
/**\r
{\r
_hundred = port.readRawValue();\r
}\r
+ /** \r
+ * set the normalized value corresponding to readValue() = 0\r
+ * @param low the low value\r
+ */\r
+ public void setLow(int low) { _zero = 1023 - low;}\r
+ /** \r
+ * set the normalized value corresponding to readValue() = 100;\r
+ * @param high the high value\r
+ */\r
+ public void setHigh(int high) { _hundred = 1023 - high;}\r
+ /**\r
+ * return the normalized value corresponding to readValue() = 0\r
+ */\r
+ public int getLow() { return 1023 - _zero;}\r
+ /** \r
+ * return the normalized value corresponding to readValue() = 100;\r
+ */\r
+ public int getHigh() {return 1023 - _hundred;}\r
}\r