|
> where <sym> is one of 'PORT1, 'PORT2, 'PORT3 and num is either 0, 1, or 2
With obvious mappings, of course.
> I only ask because my tests from the console are... inconclusive.
Put another way, at no point does the red LED on the light sensor light
up, and I consistently read the same value from the light sensor, regardless
of whether I set the mode to RAW or percent value. In the former, I read
133, and an occasional 132 or 134. In the latter case, I consistently read
19. This seems to be independent of the input port as well. The RCX is in
known good condition, to the best of my knowledge.
I tried swapping the position of SENSOR_CLEAR, but nothing seemed to change.
Thanks
Matt
|
|
Message is in Reply To:
| | Light sensor question
|
| I want to expand the Scheme procedure (get-light-value <sym | num>) where <sym> is one of 'PORT1, 'PORT2, 'PORT3 and num is either 0, 1, or 2 to the FORTH code 128 <port> SENSOR_MODE <port> SENSOR_CLEAR <port> SENSOR_READ <port> SENSOR_VALUE So, if (...) (22 years ago, 15-Jul-02, to lugnet.robotics.rcx.pbforth)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|