#ifndef PLASMA_H #define PLASMA_H void plasma() { // Persistent local variables static int16_t thisphase = 0; // Phase of a cubicwave8. static int16_t thatphase = 0; // Phase of the cos8. // Temporary local variables uint16_t thisbright; uint16_t colorIndex; timeval = 20; // Our EVERY_N_MILLIS_I timer value. thisphase += beatsin8(6,-4,4); // You can change direction and speed individually. thatphase += beatsin8(7,-4,4); // Two phase values to make a complex pattern. By Andrew Tuline. for (int k=0; k