Main Site Documentation

T43/Razor SetLCDRotation returning false


#1

Is LCD rotation not supported on a T43 plugged into a Razor?


        private void ProgramStarted()
        {
            Debug.Print("Program Started");

            InitializeLcd();
        }

        private void InitializeLcd()
        {
            bool rotationEnabled = display_T43.SetLCDRotation(Module.DisplayModule.LCDRotation.Counterclockwise90Degrees);
            Debug.Print(rotationEnabled.ToString());

            display_T43.SimpleGraphics.DisplayText(
                "Display Initialized",
                Resources.GetFont(Resources.FontResources.small),
                Color.White,
                0,
                0);
        }

This prints “False” and the text remains un-rotated.


#2

Our boards do not currently implement that method. To get screen rotation on our Premium devices, from GHI.Premium.Hardware, call


GHI.Premium.Hardware.Configuration.LCD.SetRotation(GHI.Premium.Hardware.Configuration.LCD.Rotation.Rotate_180);