Documentation / Widgets / Ready-made / Bluetooth LE icon

Bluetooth LE icon

The Bluetooth mark, in the colour of what Bluetooth is doing: grey while it is switched off, flashing while it waits to be paired, lit once something is connected. It follows the board by itself - no event, no binding - whether the board is a keyboard, an HMI link or a speaker, and dropping one into a design with Bluetooth off switches it on.

Group: Ready-made · Default size: 32 × 32 · Style parts: Main

A dropped Bluetooth LE icon: a small blue Bluetooth mark.
A Bluetooth LE icon as it is dropped, in its Connected colour.
The first of the Bluetooth LE icon settings: a note that this board's Bluetooth is a keyboard with a Hardware > Bluetooth button, Size 32 px, Switched off grey, Waiting to be paired blue.
The first of its settings.
SettingDefaultWhat it does
Size32 pxAlso its width and height. 21, 42 and 63 px land on the icon's drawing grid and are sharpest.
Switched offGreyIts colour while Bluetooth is off the air.
Waiting to be pairedBlueOn the air with nothing connected. It flashes in this colour.
Flashes every500 msHow long it is lit, and how long dark, while it waits. 0 keeps it lit.
ConnectedBlueA host or a phone is connected.
Sound is playingBlueA speaker only. The same as Connected unless you want to tell them apart.
TroubleRedPairing failed, or a host keeps connecting and dropping.

It has no text colour or font of its own: the colour is the state's. Its background, border and padding are ordinary Style settings, so it can sit on a plate. Give it a Clicked event running Bluetooth on or off and the icon is its own switch. Arduino export, LVGL 8 and 9; in a design whose Bluetooth is off it stays the first colour.

Example: its own on and off switch

  1. Drag a Bluetooth LE icon onto the screen. With Bluetooth off in the design, it is switched on, as a keyboard: Hardware > Bluetooth says so and is where you choose another role.
  2. Name it BluetoothState and set its Size to 42.
  3. Give it an event: Clicked, Action Bluetooth on or off, Do On if it is off, off if it is on.
  4. Drag a Label under it saying what a tap does.
A blue Bluetooth mark with the words Tap the mark to switch Bluetooth on or off under it.
The icon, and what tapping it does.
The icon's Events: Clicked, Bluetooth on or off (Pro), Do On if it is off, off if it is on.
A tap switches Bluetooth.
Hardware, Bluetooth: This board uses Bluetooth ticked, and This board is A keyboard (HID) chosen out of four roles.
The drop switched Bluetooth on, as a keyboard.