On Sat, Feb 5, 2011 at 1:41 PM, Mark
<markwinvdb@...> wrote:
--- In
bc2000@yahoogroups.com, Jared Helfer wrote:
> Is there any way to separate the LED values of the knobs from the messages
> it sends? Mainly just for the encoders at this stage. So, the first knob
> would send B0 00 00-127 but it would receive B0 01 00-127?
There are two ways to make an encoder (or button) SEND data:
1. An ".easypar" statement ("standard output" in BC Manager).
2. One ore more ".tx" statements ("custom output" in BC Manager).
In fact, both methods can co-exist: in this case the encoder first sends its standard output, then its custom output.
However, an encoder only RESPONDS to the STANDARD output definition, not to the CUSTOM output definition.
So if you want the encoder to respond to B0 01 0-127, you have to make a "standard output" definition for these messages, but of course this automatically makes the encoder SEND these messages as well.
But you can add a CUSTOM output statement that outputs B0 00 0-127 (namely ".tx $B0 $00 val").
Then the encoder sends both B0 01 0-127 and B0 00 0-127. So it depends on the receiver whether this is feasible. (In particular, the receiver should probably ignore B0 01 0-127.)
Unfortunately the BCR2000 does not allow mathematical operations like addition on its encoder values. For that you need an external intermediary that converts the BCR's input/output messages.
Hope this helps,
Mark.
--
"And yet ik have alwey a coltes tooth,
As many a yeer as it is passed henne
Sin that my tappe of lyf bigan to renne.
For sikerly, whan I was bore, anon
Deeth drogh the tappe of lyf and leet it gon;
And ever sithe hath so the tappe y-ronne,
Til that almost al empty is the tonne.
The streem of lyf now droppeth on the chimbe.
The sely tonge may wel ringe and chimbe
Of wrecchednesse that passed is ful of yore;
With olde folk, save dotage, is namore."
-The Reeve's prologue, lines 34-44