Status LED

Learn how to use Sparki's Status LED

SparkiDuino
Easy

Lessons You Should Know

Sparki has a small red LED light that can be used to display simple information. You can turn it on and off using digitalWrite, or partially turn it on using analogWrite.

Top - Status LED

Using the Part

With the basic Sparki code in place, you can use the status LED using these commands. You can copy-paste them into the code:

You can also use the analogWrite function to tun the LED partially on or off:


SparkiDuino already has code examples for you to use: File > Examples > Status_LED