/// <summary> /// Returns an enumerator /// </summary> /// <returns> /// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> /// </returns> public IEnumerator <byte> GetEnumerator() { var tmp = new byte[memoryLength]; memory.Copy(memoryOffset, tmp, 0, memoryLength); return(((IEnumerable <byte>)tmp) .GetEnumerator()); }
private void Initialize(ITlc59711Settings settings) { referenceClockEdge = settings.ReferenceClockEdge ? OUTTMG : OFF; referenceClock = settings.ReferenceClock ? EXTGCK : OFF; displayTimingResetMode = settings.DisplayTimingResetMode ? TMGRST : OFF; displayRepeatMode = settings.DisplayRepeatMode ? DSPRPT : OFF; blank = settings.Blank ? BLANK : OFF; bcb = settings.BrightnessControlB; bcg = settings.BrightnessControlG; bcr = settings.BrightnessControlR; WriteFirstByte(); WriteSecondByte(); WriteThirdByte(); WriteFourthByte(); var zero = new byte[DATA_LENGTH]; memory.Copy(zero, 0, DATA_OFFSET, DATA_LENGTH); }