My next step is to create buttons with my GLCD library, i'm thinking about how to check if a touch is within ('inside') or not ('outside') the area of the button's coordinates ?
Is the best way to proceed to test with 'if' tests ?
ie :
Code:
if (PEN_X > 30) && (PEN_X < 80) && (PEN_Y > 20 && PEN_Y < 50) dosomething();
I think this kind of check uses lot a memory, isn't it ? ( my 18F97J60 is almost out of memory, i should not be able to create lot a buttons if go in that way )