Main Site Documentation

Ref: http://www.ghielectronics.com/glide/example/5/ - some polish required / partially complete example


#1

Hi GHI,

Re: [20110913] example 5, ref: http://www.ghielectronics.com/glide/example/5/

I only wish to offer some constructive feedback on my experience from a novice Glide user’s perspective, as I am struggling with some of the examples.

I’ve been working through the examples and it would be a more positive experience if the examples where complete, and downloadable (I know this is work). I’m trying to build a solution with all projects in it, which I will make available on complete testing).

The one below has incomplete code, and I am really not sure what to put in the:

 
// Check if the touch panel is touched
if(...)
{

//My Guess would be....

if(touches.Length > 0)
{

Can an example for the following be made available?

 
 // Read the touch panel
 // ...
 // ...
 

Can an example for the following be made available?

 
 // Get the X & Y coordinates
 // ...
 

Can someone add a Main() to the Example, to finish it off, here’s guess as to what is required to kick off the thread…


 public class Program
    {
        public static void Main()
        {
            
            MyTouchClass T = new MyTouchClass();
            
            while (true)
            {
                // Sleep for 500 milliseconds
                Thread.Sleep(500);

            }
        }

    }
 

and how to get the touch co-ordinates a few lines further down.

http://www.ghielectronics.com/glide/example/5/

I’m using the examples to learn the Glide interface etc, which is difficult when teh examples don’t work or are a class without a main()

I don’t mind helping where I can, but


#2

This example shows how to feed touch events into Glide. This is only required when you’re using your own display with your own custom driver. If you’re using our 3.5", 4.3" or 7" this example isn’t required. All the spots you’re asking code for are user created so it could look very different. This is a class so no main is provided.

MyTouchClass myTouch;

public static void Main()
{
    myTouch = new MyTouchClass();
}

#3

Thanks Josh,

It would be helpful to add a note to the header of the example, as follows:
“Not intended for use by FEZ COBRA LCD 3.5”, 4.3" or 7" users, for custom/bespoke LCD development only"


#4

Actually this should even say that this demo is fro those trying to add their own touch interface, like 5wire resestive, capacitive touch input or even serial touch data.