From e8b4d4fe697a797968f03a68efe4119378396dbe Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Fri, 24 Oct 2025 10:10:00 +0200 Subject: [PATCH 1/2] Add description and URL to library.properties Updated library properties to include a description and URL. --- library.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library.properties b/library.properties index db7373f..5520e09 100755 --- a/library.properties +++ b/library.properties @@ -2,9 +2,9 @@ name=Arduino_LTR381RGB version=1.0.0 author=Arduino maintainer=Arduino -sentence= -paragraph= +sentence=Library for the Lite-On LTR381RGB color and ambient light sensor. +paragraph=This library provides an easy-to-use interface to read RGB, IR, and ambient light values from the Lite-On LTR381RGB sensor. It supports calibration, gain and resolution configuration, lux calculation, and conversion to HSV/HSL color spaces. category=Sensors -url= +url=https://github.com/arduino-libraries/Arduino_LTR381RGB architectures=* includes=Arduino_LTR381RGB.h From e93d050f847b7ae751ca4108e7d3a3060a7a687f Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis <45899760+leonardocavagnis@users.noreply.github.com> Date: Fri, 24 Oct 2025 10:14:04 +0200 Subject: [PATCH 2/2] Revise README --- README.adoc | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/README.adoc b/README.adoc index a98f9c6..603c00c 100644 --- a/README.adoc +++ b/README.adoc @@ -1,18 +1,9 @@ -// Define the repository information in these attributes -:repository-owner: arduino-libraries -:repository-name: Arduino_LTR381RGB +# 🌈 Arduino LTR381RGB Library -= Modbus Library for Arduino = +Allows you to read RGB, infrared, and ambient light values from the Lite-On LTR381RGB sensor. -image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-arduino.yml/badge.svg["Check Arduino status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-arduino.yml"] -image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml/badge.svg["Compile Examples status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml"] -image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml/badge.svg["Spell Check status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml"] +The Lite-On LTR381RGB is a digital light sensor capable of measuring red, green, blue (RGB) color components, infrared (IR) intensity, and ambient light (ALS) levels. +It communicates over the I²C bus and includes programmable gain, resolution, and interrupt thresholds, making it suitable for applications such as color detection, lux measurement, and automatic brightness or white balance adjustment. -Allows you to read RGB, Infrared and ambient light channels values from LITEON LTR381RGB sensor. - -== License == - -Copyright (c) 2025 Arduino SA -This Source Code Form is subject to the terms of the Mozilla -Public License (MPL), v 2.0. You can obtain a copy of the MPL -at http://mozilla.org/MPL/2.0/ +This library provides an easy-to-use API to interface with the Lite-On LTR381RGB color and ambient light sensor. +It supports RGB, IR, and ALS measurements, as well as automatic calibration, gain and resolution control, interrupt configuration, and color space conversion (HSV/HSL).