O'Reilly logo

Mastering Arduino by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

NeoPixel shield

Before we begin coding, we will need to install the Adafruit NeoPixel library. The following screenshot shows the library that should be installed by the library manager. If you do not remember the steps to install a library, refer back to Chapter 9, Environment Sensors:

 

Sensors where we install the library for the DHT11 temperature and humidity sensor.

Once the library is installed, we will need to include it by putting the following line at the top of our code:

#include <Adafruit_NeoPixel.h>

When we use the Adafruit NeoPixel library, we need to tell it what pin the NeoPixels are connected to and how many NeoPixels are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required