Shop OBEX P1 Docs P2 Docs Learn Events
Mouse discrepancy — Parallax Forums

Mouse discrepancy

El PaisaEl Paisa Posts: 375
edited 2006-05-18 15:19 in Propeller 1
I got my demo board this morning.
I am trying the different functions.
I have problems with the Mouse.
The schematic shows a different connections for the mouse the the program mouse_iso.spin.
Not only that but the program mouse_iso.spin does not indicate what kind of display to use.
LCD, TV monitor, VGS or what?.

I was using a TV monitor but the screen remains blank and do not have a regulat LCD to try.
·

Comments

  • El PaisaEl Paisa Posts: 375
    edited 2006-05-18 02:02
    BTW I am using the keyboard from a Gateway Profile 4 Computer and works perfectly.
  • Jim CJim C Posts: 76
    edited 2006-05-18 02:11
    I first got the mouse going with Graphics_Demo, which uses a TV setup. If it doesn't work, consider switching the code that calls Mouse.spin.

    PUB start(dpin, cpin)


    such that dpin and cpin are switched.

    Jamesx
  • El PaisaEl Paisa Posts: 375
    edited 2006-05-18 02:42
    The program (mouse_iso) have a line 'PUB start(pingroup) : okay'

    If I change to 'PUB start(dpin,cpin) : okay '

    An error message "expected expression term" is generated at line

    'par_pingroup := pingroup'
  • cgraceycgracey Posts: 14,133
    edited 2006-05-18 05:00
    Woops! Use 'mouse.spin', not 'mouse_iso.spin'. The latter was used on the first demo board, but it was found that two pins can reliably interface more directly with a mouse than the old 4-pin way.
    El Paisa said...
    I got my demo board this morning.
    I am trying the different functions.
    I have problems with the Mouse.
    The schematic shows a different connections for the mouse the the program mouse_iso.spin.
    Not only that but the program mouse_iso.spin does not indicate what kind of display to use.
    LCD, TV monitor, VGS or what?.

    I was using a TV monitor but the screen remains blank and do not have a regulat LCD to try.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
  • El PaisaEl Paisa Posts: 375
    edited 2006-05-18 12:04
    Chip:

    I used mouse.spin and compiles OK

    But I am not sure what device to use LCD,TV monitor or VGA?

    TV monitor does not shows anything.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-05-18 15:10
    The mouse object simplifies getting information form your mouse such as the state of buttons and X-Y positions, etc.· But it doesn't automatically cause something to be displayed.· You main object has to define what to do with the data and load the appropriate display objects and draw what you want based on the information returned from the mouse object.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • kerrywkerryw Posts: 61
    edited 2006-05-18 15:19
    A quick suggestion would be to just create a loop that prints out the mousex and mousey positions on the TV terminal.


    Kerry
Sign In or Register to comment.