EEVblog® Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: ali_asadzadeh on April 17, 2018, 02:43:06 pm

Title: LED Dance pattern generation
Post by: ali_asadzadeh on April 17, 2018, 02:43:06 pm
Hi,
I'm doing some cool LED effects, I have 3 RGB led's each with a 16bit color depth PWM, I have made some animations on them, but the problem is making long patterns, Do we have some software to generate dance patterns for led's?

Here is the array for blinking leds
Code: [Select]
const uint16_t dance_pattern[10000][9]={
// B_LED3  R_LED3  G_LED3  G_LED2  R_LED2  B_LED2  G_LED1  R_LED1  B_LED1
{0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x000F},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00FF},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0FFF},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x000F, 0x0000},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00FF, 0x0000},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0FFF, 0x0000},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x000F, 0x0000, 0x0000},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00FF, 0x0000, 0x0000},
  {0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0FFF, 0x0000, 0x0000},
};

Also you can see some video in this link
https://youtu.be/CdbzzwZ1hvU