Announcement

Collapse
No announcement yet.

Picaso Demo on Micro VGA II card

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Picaso Demo on Micro VGA II card

    I loaded the rundemos in flash from PicasoGFX2 - > Picaso - Demo and also copied
    the executables in disk

    All I see is a top level window with menu items for Tetris, Slider etc.

    Since there is no touch on the micro VGA card, I dont get to activate the menu items.
    Is that how the demo is set up?

    Has any body figured out how to connect the demo with VGA link?

    Regards

  • #2


    Hi,
    Yes RUNDEMOS is a bit of a letdown for uVGA users.
    If you have a look at the code example here:-
    http://www.4dsystems.com.au/code/index.php?node=80&id=97
    it should help you to figure out how to patch an external pointing device.
    Regards,
    Dave

    Comment


    • #3


      I will try to convert rundemo (top level) to a version that is good for microVGA users
      to do that

      1. Add mouse code in Scan: section of rundemo
      2. Recompile with Mouse.inc
      3. keep fingers crossed and hope it works :-)

      Is it that simple? nah...

      Scan:
      touchState := touch_Get(TOUCH_STATUS); // save touchscreen status
      touchX := touch_Get(TOUCH_GETX); // and current position
      touchY := touch_Get(TOUCH_GETY);

      is converted to

      Scan:
      #IF EXISTS UVGA_II_GFX // if uVGA
      mouse(POLL); // must poll the mouse in the loop
      #ENDIF
      touchState := touch_Get(TOUCH_STATUS); // save touchscreen status
      touchX := touch_Get(TOUCH_GETX); // and current position
      touchY := touch_Get(TOUCH_GETY);

      Comment


      • #4


        there is more to get this working, such as setting up the mouse communication
        and a bunch of other stuff.
        current scope is to be able to use the mouse pointer from VGA link and click on RunDemo buttons.
        Once the sup programs start there will be no mouse( for this iteration)...which means
        we cant get back to the main rundemo screen which is OK for now.

        Regards

        Comment


        • #5


          well, converting RunDemo for microVGA was quick.
          Attached is the RunDemo with mouse through VGA link.

          Mouse will work only on top level RunDemo Screen.

          Now to get mouse into the other programs :-||

          Regards

          Attached files runDemos.4dg (16.4 KB)

          Comment


          • #6


            Have been able to plug in Mouse in tetris example, however the pointer moves with a lag assuming that processing/communication speed is the issue - not a problem now

            However after trying to include Mouse.inc in POPMSG1 , i get compile error due
            to
            'TOUCH DRIVE' not found (line 124 file:MOuse.inc)
            contest Error for unknown 'TOUCH DRIVE' not found (line 124 file:MOuse.inc)
            similarly for all other line containing touch drive129,135,138

            double checked Mouse.inc for any accidental deletions, complied RunDemo which uses Mouse.inc and everything compiled OK.

            Leads me to believe that there is a declaration issue somewhere in the include chain
            with POPMSG1.
            Any suggestion? attached POPMSG1 and my copy of Mouse.inc (renamed as Mouse.4dg) as upload does not allow .inc file


            Attached files MOUSE.4dg (10.3 KB) POPMSG1.4dg (11.7 KB)

            Comment

            Working...
            X