Exemplo n.º 1
0
        protected override void Execute()
        {
            var text  = "HELLO ";
            var index = 0;

            while (!cancellationTokenSource.Token.IsCancellationRequested)
            {
                ScreenHelper.DisplayLetter(senseHat, text[index]);
                index = index == text.Length - 1 ? 0 : index + 1;
                waitEvent.Wait(500);
            }
        }