Rust PATLITE Beacon
A Rust library and CLI tool for controlling USB PATLITE beacon devices.
Features
- Control LED color (off, red, green, yellow, blue, purple, lightblue, white)
- Set LED patterns (solid, pattern1-6)
- Control buzzer patterns (continuous, sweep, intermittent, weak/strong attention, shining star, london bridge)
- Set buzzer volume (0-10)
- Read touch sensor state
- Scan for connected beacon devices
Installation
USB Device Permissions
Linux
On Linux, you need to set up udev rules to access the USB beacon without root privileges:
-
Copy the provided udev rules file to your system:
-
Reload the udev rules:
-
Disconnect and reconnect your USB beacon device.
After these steps, you should be able to run the beacon commands without sudo.
macOS
On macOS, you need to run the beacon commands with root privileges:
Or if using the compiled binary:
Usage
Quick Start
Set LED to red:
Commands
Scan for devices
Set LED color and pattern
Control buzzer
Set buzzer volume
Advanced buzzer control (pattern, count, volume)
Read touch sensor
Reset device (turn off LED and buzzer)
Connection display settings
Shorthand Options
You can also use shorthand options:
Library Usage
use ;