This page demonstrates the OpenLCB Blue/Gold algorithm for easily programming producers and consumers.

Press the button at the bottom to start the demonstration. (Note: This may not work on some browsers, particularly Safari, depending on security settings; it's known to work on recent Firefox versions)

You'll see a monitor window, to see what the protocol does, plus four windows representing nodes. Each has three consumers set to specific events, and three producers set to specific events. The producers are buttons; when you press the button, the event is sent. If a consumer see's its configured event, it flashes.

Originally, they are all set to unique and different EventIDs. You use the blue and gold buttons and lights (boxes) to configure the connections between producers and consumers. Blue is used to select the ones to be configured, and gold presses do the operations.

An Example

First, let's set the 1st producer in the 1st node to be programmed: Next, select the 1st consumer on the 2nd board, and tell all selected producers and consumers to use its event: Note that the 1st producer on the 1st node is now showing the event number from the selected consumer. If you press that producer, it sends its event, and the consumer responds.

How it works

Basically, the blue button selects a producer or consumer, and the gold button specifies what to do with it.

To select a producer or consumer, just click the blue button the necessary number of times. Clicks cycle through the producers, then through the consumers, then back to no selection. If you lose track, just push the blue button until the light goes out, then start counting again.

The gold button does commands and modes.

If you've selected producers and/or consumers and want to deselect them, press and hold the blue button for at least three seconds. All selected producers and consumers on that node will be unselected.