예제 #1
0
        //public delegate void updateRGBComponents(IRGBComponent[] components);

        public static IRGBComponent[] getRGBComponents()
        {
            ArduinoRGBController arduino = new ArduinoRGBController();

            IRGBComponent[] components = new IRGBComponent[arduino.NumberOfStrips];
            for (int i = 0; i < arduino.NumberOfStrips; i++)
            {
                components[i] = new ArduinoStripController(arduino, i);
            }
            return(components);
        }
 public ArduinoStripController(ArduinoRGBController arduino, int stripIndex)
 {
     this.arduino    = arduino;
     this.stripIndex = stripIndex;
 }