led config in a separate file

bluepill
JbLb 6 years ago
parent 25f29d6210
commit e9c112b6eb

@ -3,12 +3,10 @@
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Adafruit_NeoPixel.h>
#define PIN PB5 // Pin where NeoPixels are connected
#define NB_LED 12 // number of LEDs
#include "leds_config.h"
// Declare our NeoPixel strip object:
Adafruit_NeoPixel strip(NB_LED, PIN, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel strip(LED_STRIP * NB_STRIP , PIN, NEO_GRB + NEO_KHZ800);
// Argument 1 = Number of pixels in NeoPixel strip
// Argument 2 = Arduino pin number (most are valid)
// Argument 3 = Pixel type flags, add together as needed:

@ -0,0 +1,6 @@
#include <Arduino.h>
#define PIN PB5 // Pin where NeoPixels are connected
#define LED_STRIP 12 // number of leds per strip
#define NB_STRIP 2 // number of strip
Loading…
Cancel
Save