Skip to content

Commit 9e98b01

Browse files
committed
Content update (LEDs section)
1 parent 78ab54d commit 9e98b01

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed
520 KB
Loading
2.92 MB
Loading

content/hardware/06.nicla/boards/nicla-sense-env/tutorials/user-manual/content.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ NiclaSenseEnv device;
241241
the device I2C address, serial number, and other configuration settings.
242242
*/
243243
void printDeviceInfo() {
244-
Serial.println("Device Information:");
244+
Serial.println("- Device Information:");
245245
Serial.print("- Device (0x");
246246
Serial.print(device.deviceAddress(), HEX);
247247
Serial.println(") connected.");
@@ -277,11 +277,11 @@ void setup() {
277277
for (auto startNow = millis() + 2500; !Serial && millis() < startNow; delay(500));
278278
279279
if (device.begin()) {
280-
Serial.println("Device successfully initialized!");
280+
Serial.println("- Device successfully initialized!");
281281
// Print device information once after initialization
282282
printDeviceInfo();
283283
} else {
284-
Serial.println("Failed to initialize the device. Please check the connection!");
284+
Serial.println("- Failed to initialize the device. Please check the connection!");
285285
}
286286
}
287287
@@ -519,7 +519,7 @@ You can download the example sketch [here](assets/nicla_sense_env_low_power_mode
519519

520520
## LEDs
521521

522-
This section of the user manual explains how to control both the onboard orange and RGB and LEDs on the Nicla Sense Env board using the `Arduino_NiclaSenseEnv` library API. The LEDs can be used to provide visual feedback for various operations, such as indicating status, warnings, or sensor errors. This section covers the basic usage of both LEDs, including turning them on, changing colors, and adjusting brightness.
522+
This section of the user manual explains how to control both the onboard orange and RGB and LEDs of the Nicla Sense Env board using the `Arduino_NiclaSenseEnv` library API. The LEDs can be used to provide visual feedback for various operations, such as indicating status, warnings, or sensor errors. This section covers the basic usage of both LEDs, including turning them on, changing colors, and adjusting its brightness.
523523

524524
![The onboard LEDs of the Nicla Sense Env board](assets/user-manual-20.png)
525525

@@ -591,6 +591,8 @@ Here is a detailed breakdown of the example sketch shown before and the `Arduino
591591

592592
After uploading the example sketch to the Nicla Sense Env board, you should see the orange LED smoothly increase and decrease in brightness, creating a continuous pulsing effect.
593593

594+
![Orange LED of the Nicla Sense Env board](assets/user-manual-22.gif)
595+
594596
You can download the example sketch [here](assets/nicla_sense_env_orange_led_control_example.zip).
595597

596598
### RGB LED
@@ -599,7 +601,7 @@ The onboard RGB LED on the Nicla Sense Env board can be controlled using the `Ar
599601

600602
```arduino
601603
/**
602-
RGB LED Control Example for Nicla Sense Env (with brightness control)
604+
RGB LED Control Example for Nicla Sense Env
603605
Name: nicla_sense_env_rgb_led_control_example_brightness.ino
604606
Purpose: This sketch demonstrates how to control the RGB LED by setting
605607
different colors and ensuring brightness control using the Arduino_NiclaSenseEnv library.
@@ -670,6 +672,10 @@ After uploading the example sketch to the Nicla Sense Env board, you should see
670672

671673
![Example sketch output in the Arduino IDE's Serial Monitor](assets/user-manual-19.png)
672674

675+
You should also see the onboard RGB LED of your Nicla Sense Env board turn on red for one second, then green for one second, then blue for one second, and finally turn off, repeating this cycle.
676+
677+
![RGB LED of the Nicla Sense Env board](assets/user-manual-21.gif)
678+
673679
You can download the example sketch [here](assets/nicla_sense_env_rgb_led_control_example_brightness.zip).
674680

675681
## Temperature and Humidity Sensor

0 commit comments

Comments
 (0)