Controlling LEDs with Boolean functions

Moderator: AdminGroup

gregd99
Posts: 3
Joined: Fri Feb 04, 2022 4:00

Controlling LEDs with Boolean functions

Postby gregd99 » Sat Feb 05, 2022 6:10

I *think* that I have a boolean function set up correctly and associated with physical cell 49.

I would like to use the output of the function to control a LED.

Although the manual lists "boolean function" as an event for LED control.... this option is not in the software drop down list.

I have tried using the cell in which the boolean function resides as a physical/logical/virtual button event to set the LED. I have also tried to set a button as the output of the boolean function and use this as a physical/logical/virtual button event to set the LED.

Does anyone have any experience with this?
Thanks very much.

Ron61
Posts: 3542
Joined: Tue Jan 15, 2013 23:56
Location: г.Минск
Has thanked: 46 times
Been thanked: 690 times

Re: Controlling LEDs with Boolean functions

Postby Ron61 » Sat Feb 05, 2022 11:59

Show off your button settings and Leds settings. Without this, it is difficult to understand where the error is.

Crosius
Posts: 6
Joined: Thu Feb 03, 2022 2:53
Has thanked: 2 times
Been thanked: 3 times

Re: Controlling LEDs with Boolean functions

Postby Crosius » Sun Feb 06, 2022 1:28

Yes, I have experience with this.

First check your firmware version. There is a bug in the v2.9 firmware that causes some of the boolean function blocks to ignore inputs. This can cause them to return unexpected results or not trigger correctly in response to the input they receive.

The most recent firmware that appears to have all boolean functions working properly is 2.08.5

Then if your setup still doesn't work post your boolean and LED events.

User avatar
Victorus
Posts: 1723
Joined: Wed Sep 21, 2011 13:25
Has thanked: 393 times
Been thanked: 264 times

Re: Controlling LEDs with Boolean functions

Postby Victorus » Tue Feb 08, 2022 21:21

My example. On-Off-On toggle switch. Line 22 mapped to keystroke G (gear down). Line 21 mapped to keystroke Shift+G (gear up). LED 11 will indicate that gear dn. ! Toggle must be in off - not to flood keyboard buffer. RS trigger.
RST.png

Line 22 "presses" line 5. It stays On after 22 is off. LED # 11 flashes.

led.jpg

Line 22 "releases" line 5. LED is off.
Руководство пользователя по контроллерам VKB (VKB controllers User Guide) Ru&En
https://disk.yandex.ru/d/LlqiYtIrIetBOQ

lawndart
Posts: 1
Joined: Wed Mar 09, 2022 16:55
Been thanked: 1 time

Re: Controlling LEDs with Boolean functions

Postby lawndart » Wed Mar 09, 2022 17:53

This is not a boolean function solution, but an equivalent button "OR" to control an LED is to use the "Use 2 buttons" option in Buttons/Logical Layer/Profile. For the second button, assign an unused button such as 125, 126, or 127.

Under External/LEDs/Global, assign an EVENT to Logical Button with OP1 set to the second button (ie. 127). Also set the LED (RGB #10 in my case), the LED MODE and Color1.

In my case with the NXT/SEM combo, 32 LED events was not enough for all the buttons. However I was using up to 7 switches for trims (rudder, ailerons, elevator, reset trims). So assigning these buttons to use the same color on a secondary logical button was a good solution to get an LED event on all buttons.

Clipboard01.png
Attachments
Clipboard02.png


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 10 guests