Thingiverse
LED Overhead Lamp
von djtron
4
Downloads
4
Likes
0
Makes
See pictures for wiring as its fairly simple. You will need a small switch as well that measures 8.5 x 13.5mm for fitting in the hole. You can also take the STL and modify the switch hole for another one that you want to buy
---Arduino CODE---
#include
#define PIN 6
#define LOW_HIGH_PIN 13
#define LED_COUNT 200
#define MAX_TOTAL_COLOR 200
#define ALL_ON 0
Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, PIN, NEO_GRB + NEO_KHZ800);
uint32_t magenta = strip.Color(75,0,75);
uint32_t aqua = strip.Color(0,75,75);
uint32_t yellow = strip.Color(75,75,0);
uint32_t orange = strip.Color(100,60,0);
uint32_t off = strip.Color(0,0,0);
uint32_t white = strip.Color(150,150,150);
uint32_t dimWhite = strip.Color(60,60,60);
static void setstrip(uint32_t color);
void setup() {
// put your setup code here, to run once:
pinMode(LOW_HIGH_PIN, INPUT_PULLUP);
strip.begin();
Serial.begin(9600);
setstrip(white);
}
void loop() {
if(digitalRead(LOW_HI
---Arduino CODE---
#include
#define PIN 6
#define LOW_HIGH_PIN 13
#define LED_COUNT 200
#define MAX_TOTAL_COLOR 200
#define ALL_ON 0
Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, PIN, NEO_GRB + NEO_KHZ800);
uint32_t magenta = strip.Color(75,0,75);
uint32_t aqua = strip.Color(0,75,75);
uint32_t yellow = strip.Color(75,75,0);
uint32_t orange = strip.Color(100,60,0);
uint32_t off = strip.Color(0,0,0);
uint32_t white = strip.Color(150,150,150);
uint32_t dimWhite = strip.Color(60,60,60);
static void setstrip(uint32_t color);
void setup() {
// put your setup code here, to run once:
pinMode(LOW_HIGH_PIN, INPUT_PULLUP);
strip.begin();
Serial.begin(9600);
setstrip(white);
}
void loop() {
if(digitalRead(LOW_HI
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!