Skip to main content
Learn how to use RGB LEDs on smart glasses to provide visual feedback, notifications, and status indicators in your MentraOS apps. LEDs provide immediate visual feedback to users and can indicate app status, notifications, or recording states. Different smart glasses models have different LED configurations - some have RGB LEDs, others only white LEDs, and some have no LEDs at all.

πŸ“– Detailed Documentation

For complete method documentation, examples, and advanced usage patterns, see the LED Manager API Reference.

Quick Start


Key Features

βœ… Device Capability Checking

Always check session.capabilities?.hasLight before using LED features to ensure compatibility across different devices.

βœ… Multiple Control Methods

  • Low-level: turnOn(), turnOff() for precise control
  • Patterns: blink(), solid() for common behaviors
  • Capabilities: getCapabilities() to query available LEDs

βœ… Available Colors

  • red, green, blue, orange, white

βœ… Fire-and-Forget Operation

LED commands resolve immediately after sending - no waiting for responses.

Device Compatibility


Common Use Cases

Notifications

Status Indicators

Graceful Fallbacks


Best Practices

  1. Always check capabilities before using LED features
  2. Use semantic colors (green=success, red=error, blue=info)
  3. Provide fallbacks for devices without LEDs
  4. Don’t overuse - brief, meaningful feedback is best
  5. Combine with other feedback methods when appropriate

Next Steps