Bc2000 (for the BCF2000 & BCR2000) group photo

Yahoo Groups archive

Bc2000 (for the BCF2000 & BCR2000)

Index last updated: 2026-04-28 23:16 UTC

Message

Re: How do you use momentary (updown mode) in a .tx statement?

2010-05-05 by markwinvdb

--- In bc2000@yahoogroups.com, "ajawdokimov" <ajawdokimov@...> wrote:
> How do you use momentary (updown mode) in a .tx statement?
> 
> i cant seem to seperate the .tx values to correspond to on/off states
> of the button, it just chucks out both the on and off state on the on and off (wow that must sound confusing :)
> 
> heres an example ;)
> 
> $button 41
>   .showvalue on
>   .mode updown
>   .minmax 64 127
>   .tx $B0 $0F $7F  (i want this to be the on state)
>   .tx $B0 $0F $40  (Want this to be the off state)
> 
> hope that clarifies my ramplings ;
> at the moment it chucks out both states on button and off

You can also use "val":

$button 41
  .showvalue on
  .mode updown
  .minmax 64 127
  .tx $B0 $0F val

This also produces exactly the same output as the ".easypar" version you mentioned earlier, i.e. 127 when you press the button and 64 when you release it.

Hope this helps,
Mark.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.