Main Site Documentation

T35 Display Colours - fyi some appear not correct


#1

Hi - doing some work today on the T35 display. Found a few small colour assignment glitches fyi.
No big deal but again, good to verify and add to the fix list if repeatable.
Thanks, Mark.

Note - scroll to the right to see the comments below


using System;
using System.Threading;

using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;

using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;

namespace UsingDisplay
{
    public partial class Program
    {
        void ProgramStarted()
        {
            /******************************************************************************************
            Access modules defined in the designer by typing their name:                            
            
            e.g.  button
                  camera1

            Initialize event handlers here.
            e.g. button.ButtonPressed += new GTM.MSR.Button.ButtonEventHandler(button_ButtonPressed);             
            ***************************************************************************************** */
            Microsoft.SPOT.Font DispFont = Resources.GetFont(Resources.FontResources.small);

            int   yloc;

            // Do one-time tasks here
            display.SimpleGraphics.Clear();
            display.SimpleGraphics.AutoRedraw = true;

            yloc = DispFont.Height;

            display.SimpleGraphics.DisplayText("Hello World - White", DispFont, GT.Color.White, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Red", DispFont, GT.Color.Red, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Green", DispFont, GT.Color.Green, 15, (uint)yloc); //no colour
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Blue", DispFont, GT.Color.Blue, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Black", DispFont, GT.Color.Black, 15, (uint)yloc); //ok (I think :-) )
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Brown", DispFont, GT.Color.Brown, 15, (uint)yloc); // ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Cyan", DispFont, GT.Color.Cyan, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Dark Gray", DispFont, GT.Color.DarkGray, 15, (uint)yloc); //dark magenta (missing green?)
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Gray", DispFont, GT.Color.Gray, 15, (uint)yloc); //dark magenta (missign green?)
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Light Gray", DispFont, GT.Color.LightGray, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Magenta", DispFont, GT.Color.Magenta, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Orange", DispFont, GT.Color.Orange, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Purple", DispFont, GT.Color.Purple, 15, (uint)yloc); //ok
            yloc += (DispFont.Height);
            display.SimpleGraphics.DisplayText("Hello World - Yellow", DispFont, GT.Color.Yellow, 15, (uint)yloc); //ok
            
            Thread.Sleep(5000);

        }
    }

 

}



#2

I am worried that you have problem in hardware rather than a software bug. We will check this but can you load some full colored image on the screen to see if it looks right please?

Maybe a color wheel? http://image.shutterstock.com/display_pic_with_logo/440539/440539,1270851258,6/stock-vector-color-wheel-50595403.jpg


#3

good catch Gus. See attached. How should I get the display replaced?
Thanks!
Mark.


#4

Please email me your order number and I will help you…

gusi@ “the ghi domain name”.com