Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - xlc

#1
Bonjour

je trouve cela super bien. Bravo.
Le fais-tu directement dans le code ?
#2
General Development / Re: touchscreen
June 04, 2017, 07:50:56 PM
@a1ex, OK I will switch on the linked thread.

@dnlit, I will have a look one time.

Thanks for your interest.
#3
General Development / touchscreen
May 31, 2017, 11:16:01 PM
Hello,

I'm developping for my 700D with this nice code and  after searching some features for my own module, I have found the touch screen that I want to share :

in surveying the event, I can find the X, Y position when you touch the screen with one or two fingers.

First the different event numbers for my 700D are in event->param with for example one function unsigned int f(struct event *event)

event-> param = 107 when you press and then touch with 1 finger,
108  when unpress 1 finger touch
109  if you shift the finger
114 when press the 2nd fingers touch
115 when unpress 2nd fingers touch
116 and 117 when shift altenartivly with two fingers

for the X,Y position and the fingerNmber, I made for example this code :
static void xlc_write_event(struct event *event)
{

   uint32_t* info = NULL;
   uint16_t* XY;
   uint16_t X, Y;
   uint32_t fingerNbr;
      
if (event->param > 100)   {   //700D  touchscreen events

      info  = (uint32_t*)(*(uint32_t*)(event->obj+4));
      switch (event->param) {
         case 107://single touch - one finger
         case 108:
         case 109 :
         XY=(uint16_t*)&info[4];
         X=XY[1];
         Y=XY[0];
         fingerNbr=info[5];
         break;
         case 114: // double touch - two fingers
         case 115:
         case 116:
         case 117:
         XY=(uint16_t*)&info[2];
         X=XY[1];
         Y=XY[0];
         fingerNbr=info[3];
         break;
      default :
         X=0;Y=0;fingerNbr=0;
      };   
      bmp_printf( FONT_MED, 200, 240,"ev=%d;Finger->%d;X=%d;Y=%d\n",  event->param, fingerNbr, X, Y);

      }else {
      X=0;Y=0;fingerNbr=0;
      bmp_printf(FONT_MED, 200, 240,"ev=%d;NoTouch\n", event->param);
      };

}

enjoy with that

#4
Hello,

I have download this module for the 700D and it doesn't work.

Then I will instal cygwin and check out the code source and after read this post, see by debug that the AE_STATE is never set (always 0).
So I change the consts.h file for the 700D platform in replacement of the constants AE_STATE ans VALUE as written somewhere in a topic page after having check in hexa code. It will be then the following :

#define EXPO_COMP (*(int16_t*)(0x367B4+0x1C))
#define AE_VALUE (EXPO_COMP-1) * 8 / 2048
#define AE_STATE (*(int8_t*)(0x367B4+0x1C))

It works (I check by printing the values of ae, iso, and so on).

I can check in if you want.

Just a question, what it is the use of AE_STATE ?

Xav