-
Notifications
You must be signed in to change notification settings - Fork 1
2.3 Editing the Sketch
Sebastian edited this page Jan 30, 2020
·
9 revisions
If you followed this Tutorial Step by Step your Arduino IDE should now look like this
If not, please make sure you didn't skipped a Step.
In Arduino IDE click on the tab named definitions.h
In this Tab you need to edit some Lines Based on your setup.
// Neopixel
#define PIN 6 // PIN where neopixel / WS2811 strip is attached
#define NUMLEDS 60 // Number of leds in the strip
#define HOSTNAME "ESP8266_02" // Friedly hostname
In our case we have Connected our green Data wire to the D6 port on the AZ-Delivery D1 Mini wich equals to PIN 12 in the IDE. Please make sure to follow the Pin layout of your Board producer.
For the NUMLEDS you need to set it to your LED Count. In our case we have a Strip of 5meters with 30Leds per meter wich equals 150 Leds. For HOSTNAME you can choose anything you want. In our case we let in on the default name.
// Neopixel
#define PIN 12 // PIN where neopixel / WS2811 strip is attached
#define NUMLEDS 150 // Number of leds in the strip
#define HOSTNAME "ESP8266_02" // Friedly hostname
Continue on Uploading the Sketch