Main Site Documentation

UD700 Display Settings


#1

Using a UCM Dev Board, UC5550 and UD 700 Rev A

Where can I find the correct ParallelDisplayControllerSettings ?

A little bit of code would be great!

Thank You!


#2

try this:

var displayController = GHIElectronics.TinyCLR.Devices.Display.DisplayController.GetDefault();

            displayController.ApplySettings(new GHIElectronics.TinyCLR.Devices.Display.ParallelDisplayControllerSettings
            {
                Width = 800,
                Height = 480,
                DataFormat = GHIElectronics.TinyCLR.Devices.Display.DisplayDataFormat.Rgb565,
                HorizontalBackPorch = 46,
                HorizontalFrontPorch = 16,
                HorizontalSyncPolarity = false,
                HorizontalSyncPulseWidth = 1,
                OutputEnableIsFixed = false,
                OutputEnablePolarity = false,
                PixelClockRate = 10000000,
                PixelPolarity = false,
                VerticalBackPorch = 23,
                VerticalFrontPorch = 7,
                VerticalSyncPolarity = false,
                VerticalSyncPulseWidth = 1
            });


            var font = Resources.GetFont(Resources.FontResources.small);
            var screen = System.Drawing.Graphics.FromHdc(displayController.Hdc);

            screen.Flush();

Remember turn the backlight pin to ON.


#3

Remember turn the backlight pin to ON.
It is ON without doing anything.

The code you provided worked!
THANK YOU for responding.
Have a GREAT DAY!


#4

OK, change from 10MHz to 20MHz will give you better result on screen.

PixelClockRate = 20000000,


#5

Will Do! Thanks again.