# LED Feedback for Launch Control XL

**URL:** <https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543>\
**Category:** Bome Products\
**Created:** [September 30, 2024, 11:47pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543 "2024-09-30T23:47:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [October 3, 2024, 8:23pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/6 "2024-10-03T20:23:00Z")

</div>

OK, so I employed a different strategy here.

Instead of different global variables for each button, I now us a single global variable (g0) as a bitmap. Bit 0 represents the first button and so forth.  
Now the rules do a bit shift on the global variable and toggle that bit if off then I do a perform ‘Clear Top’ to clear all of the LEDs prior to sending the feedback. If the state of the button was on then I turn it off.

The disadvantage is that with bit shifting, rules are more complex however a single variable is 32 bits so you can control up to 32 on/of states with a single variable.

Bitwise operations are explained in [this post](https://forum.bome.com/t/bitwise-operations-and-reference/1862).

Here is the updated project file.

[Bome-2024-10-03.bmtp](https://forum.bome.com/uploads/short-url/l93rpEapYebsJBmPiufBLz0Q56v.bmtp) (6.4 KB)

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

_[View the full topic](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543)._
