#include <DMXSerial.h>
// Constants for demo program
const int RedPin = 9; // PWM output pin for Red Light.
const int GreenPin = 6; // PWM output pin for Green Light.
const int BluePin = 5; // PWM output pin for Blue Light.
// The color fading pattern
int RedList[] = {255, 128, 0, 0, 0, 128};
int GreenList[] = { 0, 128, 255, 128, 0, 0};
int BlueList[] = { 0, 0, 0, 128, 255, 128};
int RedLevel, GreenLevel, BlueLevel;
int RedNow = 0;
int GreenNow = 0;
int BlueNow = 0;
int state = 0; |