void RotaryXRotated(object sender, RotaryChangeResult e)
        {
            if (e.New == RotationDirection.Clockwise)
            {
                x++;
            }
            else
            {
                x--;
            }

            if (x > 239)
            {
                x = 239;
            }
            else if (x < 0)
            {
                x = 0;
            }

            graphics.DrawPixel(x, y + 1, Color.Red);
            graphics.DrawPixel(x, y, Color.Red);
            graphics.DrawPixel(x, y - 1, Color.Red);
            graphics.Show();
        }
        void RotaryYRotated(object sender, RotaryChangeResult e)
        {
            if (e.New == RotationDirection.Clockwise)
            {
                y++;
            }
            else
            {
                y--;
            }

            if (y > 239)
            {
                y = 239;
            }
            else if (y < 0)
            {
                y = 0;
            }

            graphics.DrawPixel(x + 1, y, Color.Red);
            graphics.DrawPixel(x, y, Color.Red);
            graphics.DrawPixel(x - 1, y, Color.Red);
            graphics.Show();
        }
        void RotaryEncoderRotated(object sender, RotaryChangeResult result)
        {
            Console.WriteLine("Hey");

            if (result.New == RotationDirection.Clockwise)
            {
                percentage += 0.05f;
            }
            else
            {
                percentage -= 0.05f;
            }

            if (percentage > 1f)
            {
                percentage = 1f;
            }
            else if (percentage < 0f)
            {
                percentage = 0f;
            }

            ledBarGraph.Percentage = percentage;
        }