First… I admit that I am not that familiar with LCD’s
I have used the Microsoft samples 'TouchCalibration, and ‘StylusCapture’ and the touch resolution is poor in my opinion. But then again I am not sure what is considered ‘normal’. After calibration using the Microsoft sample software the Ellipse shown on Touch down ‘bounces around’. It varies from close to the Stylus to far away?
After calibration and using the StylusCapture application I can not receive a touch on the top line of text. The Ellipse get no closer that about 0.250 inch from the top of the display. The center line of text seem OK and for the bottom line of text I can get a touch if I poke around enough times.
Maybe I drink too much Coffee and my ‘touch’ with a stylus is very poor but I have noticed that the values received on Touch Down and Touch Up vary.
My question is about saving the calibration.
When sending - Microsoft.SPOT.Touch.Touch.ActiveTouchPanel.SetCalibration(CAL_POINTS, sx, sy, cx, cy);
Should the calibration settings survive a power Down, Power UP of the board?
Another question- I found some old code for the FEZ Cobra. I assume it used the same display as my ChipworkX.
Does it?
I wanted to try the code I found but I do not want to mess up the display. I see there is a value 8 for the EMX module.
What is the correct value to use for ChipworkX?
// NOTE: This is used for EMX
lcdConfig.PixelClockDivider = 8; <<<<<< ???
Also, are the other lcdConfig.(some value) OK to use as shown in the sample code?
static void SetLCDConfigurations()
{
Configuration.LCD.Configurations lcdConfig = new
Configuration.LCD.Configurations();
lcdConfig.Width = 480;
lcdConfig.Height = 272;
// Only use if needed, see documentation.
lcdConfig.PriorityEnable = false;
lcdConfig.OutputEnableIsFixed = true;
lcdConfig.OutputEnablePolarity = true;
lcdConfig.HorizontalSyncPolarity = false;
lcdConfig.VerticalSyncPolarity = false;
lcdConfig.PixelPolarity = false;
lcdConfig.HorizontalSyncPulseWidth = 41;
lcdConfig.HorizontalBackPorch = 2;
lcdConfig.HorizontalFrontPorch = 2;
lcdConfig.VerticalSyncPulseWidth = 10;
lcdConfig.VerticalBackPorch = 2;
lcdConfig.VerticalFrontPorch = 2;
// NOTE: This is used for EMX
lcdConfig.PixelClockDivider = 8;
// Set config
if (Configuration.LCD.Set(lcdConfig))
{
// New settings were saved, must reboot
Microsoft.SPOT.Hardware.PowerState.RebootDevice(false);
}
}
Thank you and
Have a GREAT DAY!