# The TinyLedSwitch – A universal breakout board!

Use the universal breakout board to verify GPIO outputs and code behavior, and use the built-in switches and forget discrete components.

- **Seller:** [DebinixTeam](https://lectronz.com/stores/debinix), Varmdo, Sweden
- **Price:** €5.25 (EUR, before shipping and taxes)
- **Availability:** Coming soon
- **Categories:** ESP32, Raspberry Pi, Arduino
- **HS code:** 85340090
- **Product page:** https://lectronz.com/products/the-tinyledswitch-a-universal-breakout-board

## Options

**Header pins mounting position**

- Fully Assembled - all header pins perpendicular to the board surface
- Fully Assembled - one header pin 90 degrees to the other.
- Do not solder any header pins. I will do it myself.

## Links

- [Documentation](https://github.com/berrak/LED-Switch-Breakout-Board)
- [Code](https://github.com/berrak/LedTask)
- [Design Files](https://github.com/berrak/LED-Switch-Breakout-Board)

## Images

![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1MywicHVyIjoiYmxvYl9pZCJ9fQ==--b584e2a50ebe7d4f204b418a47b2deddefd25f14/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2022-12-11T15-02-46.596Z-all-three-boards.jpg)
![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1NCwicHVyIjoiYmxvYl9pZCJ9fQ==--5aab26f78153d2c9542566f38043449dad25e396/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2022-12-11T15-02-46.596Z-side-view-angled-pins.jpg)
![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1NSwicHVyIjoiYmxvYl9pZCJ9fQ==--23c4bf6a80002016b16f8e908fcec36827a8743a/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2022-12-11T15-02-46.596Z-two-straight-pins-withleds-on.jpg)
![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1NiwicHVyIjoiYmxvYl9pZCJ9fQ==--6324e5655ff659a16ed048e917456cb22238c7e4/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--970c165836a83091725a1a0fd4f37ce9408da1bf/2022-12-11T15-02-46.596Z-angleds-pins-withleds-on.jpg)
![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1NywicHVyIjoiYmxvYl9pZCJ9fQ==--21fae98838a1380b5dc7db640334831800329103/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/2022-12-11T15-02-46.596Z-3d-view-led-switch-breakout.png)
![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1OCwicHVyIjoiYmxvYl9pZCJ9fQ==--74c63ab075456c510fb37472978720a0c8255430/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/2022-12-11T15-02-46.596Z-dimensions-board-led-switch-breakout.png)
![The TinyLedSwitch – A universal breakout board!](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NDM1OSwicHVyIjoiYmxvYl9pZCJ9fQ==--6ee5855b4ecb8344df6cc07b99009e5672639064/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--605f1da017bcbb03ce31845cd0e81d97e3b3c574/2022-12-11T15-02-46.596Z-features-tiny-ledswitch-breakout-board.png)

## Description

**A universal breakout board for ESP32, Arduino, STM32 or Raspberry PI’s**

Seeing the logic state of different buttons, switches, and data lines are beneficial. With the `TinyLedSwitch Breakout Board`, it is easy to identify the source of a problem, whether it be a bad switch, wire, or code.

**Description**

`The TinyLedSwitch Breakout Board` eliminates the need to cram in additional resistors, LEDs, and flimsy switches on your breadboard. Instead, four colorful red, yellow, green, and blue diodes indicate the GPIO state. Use the Panasonic light touch switches to pull down a microcontroller input. The board works with any modern microcontroller or the Raspberry PI. The optionally 90 degrees pin-headers allow mounting it either horizontally or vertically.

**Usage**

To use any four-color LEDs, you only connect the GND on the board and any LED to the device pins. 
To use the switches as a pull-down signal, use Arduino’s pinMode command, for example. If there is no such command for the device, connect VCC to the breakout boards, the pin marked 3-5V, to pull up the voltage via a ten kOhm resistor.

**Features**

`The TinyLedSwitch - A universal breakout board` is available fully assembled in two header pin variants but can be ordered without soldered header pins.

- Four different colors (red, yellow, green, and blue) LEDs for easy identification.
- Includes two Pansonic light touch switches with a low operational force of 1.6N.
- Use it for both 3.3V and 5V logic devices.
- Operate it horizontally or vertically, i.e., the board variant with one 90-degree header pin. 
- The breadboard leaves room for cables on each side, i.e., the standard variant without a 90-degree pin.
- All pins are available on both sides for easy access.
- Visible labels on both sides to simplify identification.

**Arduino LedTask Library**

The Arduino library `LedTask` shows the power of non-preemptive multitasking. `LedTask` shows an elementary example with four LEDs, which run close to independently. Use the board to run the sketch.
In addition, one example uses the two switches to detect a short or long keypress, which can be very useful when creating a menu in code.

Install the LedTask library with Library Manager in Arduino IDE.

**Specification for the breakout board v1.1**

* Operating voltage (optionally for the pull-down switches): 3.3-5V.
* The board size is 20.8 x 31.0 mm (0.82"x1.22") and fabricated as a two-layer board.
* Board thickness: 1.6 mm (63 mils).
* Color: Purple
* Weight: 3 grams (0.11 ounce).
* Height: 15 mm (0.59").

**FAQ**

Q: When do I need to apply the VCC pull-up voltage for the switches' pull-down operation?
A: If your device does not have a way to set the input pin, use internal pull-up resistors. For example, Arduino has two variants for the pinMode-command:
pinMode(pin, INPUT_PULLUP), and pinMode(pin, INPUT).

In the latter case, apply VCC to the board to use the onboard external ten kOhm resistor.
See the Arduino library LedTask examples for more information about the usage.

## Shipping policy

We usually ship within 2-3 days after receiving an order.
