예제 #1
0
 public NusbioLandscapeMatrix(NusbioMatrix nusbioMatrix, int deviceIndex)
 {
     this._deviceIndex     = deviceIndex;
     this._nusbioMatrix    = nusbioMatrix;
     this.CurrentXPosition = this._nusbioMatrix.Width - 1;
     this.CurrentYPosition = this._nusbioMatrix.Height - 1;
     _nusbioMatrix.Clear(this._deviceIndex, true);
 }
예제 #2
0
        public static NusbioMatrix Initialize(
            ISPI spi,
            MAX7219_WIRING_TO_8x8_LED_MATRIX MAX7218Wiring,
            int deviceCount)
        {
            var matrix = new NusbioMatrix(spi, MAX7218Wiring, deviceCount: deviceCount);

            matrix.Begin(DEFAULT_BRIGTHNESS_DEMO);
            return(matrix);
        }
예제 #3
0
        public NusbioGameMatrix(NusbioMatrix nusbioMatrix)
        {
            NusbioMatrix = nusbioMatrix;
            _mainBall    = new NusbioGameMatrixBall(2, 0, this);
            Rackette     = new NusbioMatrixGameRackette(7, 3, this);

            _objects = new List <NusbioGameMatrixObject>();
            _objects.Add(_mainBall);
            _objects.Add(Rackette);
        }