|
Has anyone used a rotation sensor with pbFORTH? I can't
seem to get it to work. My test script is attached.
Thanks,
Jonathan
-----
HEX
: isRunButtonPressed BUTTON_GET 1 AND 1 = ;
: showRotation
3002 SWAP 3001 LCD_NUMBER
LCD_REFRESH
;
: clear LCD_CLEAR LCD_REFRESH ;
: rotation
RCX_INIT
SENSOR_INIT
BUTTON_INIT
4 1 SENSOR_TYPE
E0 1 SENSOR_MODE
BEGIN
BEGIN
1 SENSOR_READ 0=
UNTIL
1 SENSOR_VALUE
showRotation
isRunButtonPressed
UNTIL
clear
;
-----
|
|
Message has 1 Reply: | | RE: Rotation sensors?
|
| (...) Thanks for attaching the code Jonathan. Before I go through the steps of trying this out, what do you mean by doesn't work? ie. 1. Does it hang and not display anything? 2. Does it display the same data all the time? 3. Does it not respond to (...) (25 years ago, 4-Jun-99, to lugnet.robotics.rcx.pbforth)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|