Reprogramming RCX buttons

Suppose that you want to use the RCX Run-button (or any of the buttons) in one of your Ultimate programs. Nothing more easy: you use one of the three sub.vis to check the desired button state. The first couple of sub.vis (if and while) use a button-state number rather than single buttons. This allows to program reactions on button combinations. Here the corresponding list:

 

On/Off Prgm View Run Result
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
0 1 1 1 7
1 0 0 0 8
1 0 0 1 9
1 0 1 0 10
1 0 1 1 11
1 1 0 0 12
1 1 0 1 13
1 1 1 0 14
1 1 1 1 15

 

With Ultimate the reactions on RCX button-actions are extremely fast. In fact, depending on the basic configuration, the RCX might register the high speed state flipping that every electric button produces when being switched on or off. It might be useful to check correct states. In micro-electronics this is generally done with a debouncing system, which can be hardware or software driven. Ultimate has an implemented software solution.

Depending on the initial RCX configuration, it might be necessary to disable Run-button interrupts, otherwise the reprogrammed reaction could interfere with the built-in Run-button interrupt handler that should run or stop the program.


RetourMain Page