![]() ![]() The following is based on your code, you should be able to cut and paste from this back into your structure. SO, an array for the y position, another array for the x position, and one for the speed, you could also have one for the color, and another for how long the tail is for each drop. I suggest you set up some arrays, each of the size that is how many drops you want. Seems like the answer is right there inthe video but whatever. #define BRIGHTNESS 10 //Safety Brightness setting just incase i forget to add the power safety function #define NUM_LEDS (MATRIX_WIDTH * MATRIX_HEIGHT) //Defining the total number of LEDS #define ARRAY_SIZE(A) (sizeof(A) / sizeof((A))) //Fast define that will calculate the exact size of any array Drop by: Wallpapers: Patreon: My Twitter: My Facebook: Instagram: Website: Discord: Select 'Color Effects' from the 'Effect' list and press the 'Previous effect' button. ![]() #define MATRIX_TYPE HORIZONTAL_ZIGZAG_MATRIX // See top of LEDMatrix.h for matrix wiring types #define MATRIX_HEIGHT 24 // Set this negative if physical led 0 is opposite to where you want logical 0 #define MATRIX_WIDTH 20 // Set this negative if physical led 0 is opposite to where you want logical 0 #define CHIPSET WS2812B //Model name for LED strip #define COLOR_ORDER GRB //Color order for WS2812B LED strip #define LED_PIN 7 //Data Pin for the Arduino I have been using this youTube video as a source of Reference on some of the problem solving that is taking place. I am having trouble getting multiple raindrops to fall at the same time. So far i have been able to get a single raindrop to fall down the matrix starting from a random Height and Width. Trying to create a Rain animation on the 20x24 LED matrix. Here is a link to my code: Pepper147/FastLED-Rain_Test/blob/master/Rain_Test.ino #include What i would like to do is have it so that there are many raindrops on the screen at once. The code that i have written will place a single raindrop onto the matrix and have it fall at a random speed. I have successfully been able to drop a single raindrop down the matrix but have ran into problems trying to get multiple raindrops to fall down the matrix. Hello, I’m currently working on a Raindrop animation for my 20x24 LED matrix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |