# How to simply switch on/off an LED in Launchpad MK2

**URL:** <https://forum.bome.com/t/how-to-simply-switch-on-off-an-led-in-launchpad-mk2/1627>\
**Category:** Bome Products\
**Created:** [August 8, 2020, 1:57pm UTC](https://forum.bome.com/t/how-to-simply-switch-on-off-an-led-in-launchpad-mk2/1627 "2020-08-08T13:57:43Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [December 16, 2020, 10:21pm UTC](https://forum.bome.com/t/how-to-simply-switch-on-off-an-led-in-launchpad-mk2/1627/9 "2020-12-16T22:21:47Z")

</div>

Negative numbers are OK in the array variables. Bit 31 represents a negative number so all bits on in a 32 bit variable would represent a -1 decimal.

[This post](https://forum.bome.com/t/bitwise-operations-and-reference/1862) in Tips and Tricks should explain how 32 bit signed integers work.

Steve Caldwell  
Bome Customer Care

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

---

_[View the full topic](https://forum.bome.com/t/how-to-simply-switch-on-off-an-led-in-launchpad-mk2/1627)._
