From 21ffd10d82c3c69ac276ec4fb6ba1ce4fb56cd95 Mon Sep 17 00:00:00 2001 From: Alex Delgado Date: Wed, 3 Apr 2024 16:08:20 -0500 Subject: [PATCH] Updated .adoc with functionality. --- .../docs/asciidoc/components/outputComponents/led.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pi4micronaut-utils/src/docs/asciidoc/components/outputComponents/led.adoc b/pi4micronaut-utils/src/docs/asciidoc/components/outputComponents/led.adoc index 6eac757b..070425a4 100644 --- a/pi4micronaut-utils/src/docs/asciidoc/components/outputComponents/led.adoc +++ b/pi4micronaut-utils/src/docs/asciidoc/components/outputComponents/led.adoc @@ -43,7 +43,15 @@ image::LED_circuit.png[] ===== Testing -Use: `curl http://localhost:8080/LED/LEDOn` to test the component. This will cause the LED to light. +Use: `curl http://localhost:8080/led/ledOn` to test the component. This will cause the LED to light. + +===== Functionality +Use: `curl http://localhost:8080/led` to test the component. The following commands will test the component: + +* `/ledOn` - Turns the led on. +* `/ledOff` - Turns the led off. +* `/switchState` - Switches the state of the led. +* `/blink/{duration}/` - Causes the led to blink for the desired duration and TimeUnit. ===== Troubleshooting - LED not lighting: Check the connections, and ensure the LED is placed correctly. Double-check the power source.