Code Monkey home page Code Monkey logo

xtmas_neopixel's People

Contributors

sfrwmaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

xtmas_neopixel's Issues

don't Want Random Effects

hello sir, i try this program but i don't want to run random effects every time. i want to serial wise effects as i write in program. Can u please stop the shuffle or random function. n give me serial wise code.

thank you

hello sir, plz help me...want to scroll the array in 8x8 matrix

Hello Dear Master,
i want to scroll an Array in this code horizontaly and vertically 8x8 matrix plz help me

#include <Adafruit_NeoPixel.h>
#define PIN 6
#define MAX_LED 64
uint32_t LEDColour;
unsigned char x = 0;
unsigned char Colour[3];
unsigned char heart[10] = {12, 13, 17, 20, 26, 29, 33, 36, 44, 45};

Adafruit_NeoPixel strip = Adafruit_NeoPixel( MAX_LED, PIN, NEO_RGB + NEO_KHZ800 );
void setup() {
// put your setup code here, to run once:
strip.begin();
//
strip.show();
}

void loop() {

for (char number = 0; number < 64; number++) //
strip.setPixelColor(number, 0);
strip.show();//

// delay(1000);
for (char number = 0; number < 10; number++) //
strip.setPixelColor(heart[number], 255,0,0); // i want to scroll that heart array
strip.show();//
delay(1000);
}

Does not fit on a Trinket

I see a few lines of codes for Trinket 5V on your sketch, but the compiled code cannot run on a Trinket 8Mhz.
When I try to compile it I get this error :

ChristmasStrip.ino.elf section `.text' will not fit in region `text'
region `text' overflowed by 12334 bytes

Maybe you were referencing the Trinket Pro with 28K of flash memory (instead of 8K on the Trinket) ?

help

hi is their a away so that this sketch scrolls through the effects every 15 seconds thank for any help with this

Freezes after updates

Hi, before the updates in December, the program worked fine and the effects were awesome. But when I programmed a new sketch, the LED tape began to stop at one color and freezes.
Maybe I need to turn off some effects?

i want to run normal program with class type of program

Can i run "class" code with normal example code.
i try but only one of them is running. what should i do please tell me.

class example
class colorWipe: public animation {
public:
colorWipe(void) { w = random(256); }
virtual void init(void);
virtual void show(void);
private:
byte w;
int index;
bool fwd;
};

void colorWipe::init(void) {
int p = random(2, 4);
w += p*16 + 1;
fwd = random(2);
index = 0;
if (!fwd) index = strip.numPixels() - 1;
}

void colorWipe::show(void) {
uint32_t color = Wheel(w);
if (fwd) {
if (index > int(strip.numPixels())) { // Start new sequence with the new color
init();
complete = true;
return;
}
strip.setPixelColor(index++, color);
} else {
if (index < 0) { // Start new sequence with the new color
init();
complete = true;
return;
}
strip.setPixelColor(index--, color);
}
complete = false;
}

//Normal example

void theaterChase(uint32_t c, uint8_t wait) {
for (int j=0; j<10; j++) { //do 10 cycles of chasing
for (int q=0; q < 3; q++) {
for (uint16_t i=0; i < strip.numPixels(); i=i+3) {
strip.setPixelColor(i+q, c); //turn every third pixel on
}
strip.show();

delay(wait);

for (uint16_t i=0; i < strip.numPixels(); i=i+3) {
strip.setPixelColor(i+q, 0); //turn every third pixel off
}
}
}
}

//only mgr.show is running in this loop
void loop() {
mgr.show();
theaterChase(strip.Color(127, 127, 127), 50); // White
theaterChase(strip.Color(127, 0, 0), 50); // Red
theaterChase(strip.Color(0, 0, 127), 50); // Blue
}
//what should i do please tell me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.