Esempio n. 1
0
        public void ScrollOne(object sender, MatrixScrollEventArgs args)
        {
            List <bool> toPassOver = this.columns[0];

            this.columns.RemoveAt(0);
            this.columns.Add(args.Column);
            this.OnScrollOut(toPassOver);
            this.UpdateLedsFromState();
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the next vertical strip of LEDS and scrolls the current point on. If a new
        /// character is required it is brought into play
        /// </summary>
        /// <returns>a MatrixScrollEventArgs representing the next column of leds to scroll into the marquee</returns>
        private MatrixScrollEventArgs GetNextVerticalStrip()
        {
            byte b = this.ledStates[this.offset];
            MatrixScrollEventArgs args = new MatrixScrollEventArgs(new List <bool> {
                (b & 0x40) != 0, (b & 0x20) != 0, (b & 0x10) != 0, (b & 0x08) != 0, (b & 0x04) != 0, (b & 0x02) != 0, (b & 0x01) != 0
            });

            this.RackCharacter();
            return(args);
        }
 /// <summary>
 /// Gets the next vertical strip of LEDS and scrolls the current point on. If a new 
 /// character is required it is brought into play
 /// </summary>
 /// <returns>a MatrixScrollEventArgs representing the next column of leds to scroll into the marquee</returns>
 private MatrixScrollEventArgs GetNextVerticalStrip()
 {
     byte b = this.ledStates[this.offset];
     MatrixScrollEventArgs args = new MatrixScrollEventArgs(new List<bool> { (b & 0x40) != 0, (b & 0x20) != 0, (b & 0x10) != 0, (b & 0x08) != 0, (b & 0x04) != 0, (b & 0x02) != 0, (b & 0x01) != 0 });
     this.RackCharacter();
     return args;
 }
 public void ScrollOne(object sender, MatrixScrollEventArgs args)
 {
     List<bool> toPassOver = this.columns[0];
     this.columns.RemoveAt(0);
     this.columns.Add(args.Column);
     this.OnScrollOut(toPassOver);
     this.UpdateLedsFromState();
 }