Keyestudio ESP32 Manual page 60

Starter kit
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

ESP32 Starter Kit
3. Wiring Diagram
4. Test Code
Before uploading the code, please ensure the library file is loaded to arduino IDE.
/*
keyestudio ESP32 Inventor Learning Kit
Project 5.1 Rainbow Ambient Light
http://www.keyestudio.com
*/
//Add 2812RGB library file
#include
<NeoPixel_ESP32.h>
#define PIN 15
Adafruit_NeoPixel strip
assigns the RGB LED number pins to the library code
void
setup() {
strip.begin();
strip.show();
// Refresh the display
}
56
=
Adafruit_NeoPixel(6, PIN);
//Activate RGB LED
//Defines the instance strip
Chapter 8. Arduino Tutorial
and␣
(continues on next page)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Related Products for Keyestudio ESP32

Table of Contents

Save PDF