Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Question about MAME Hooker and Teensy 2.0

  1. #1
    Junior Member
    Join Date
    Oct 2013

    Cool Question about MAME Hooker and Teensy 2.0

    I have a question... From MH 4.0 documentation:

    Generic Hid Commands:
    ================================================== ================================================== ====================
    [...] This is what the generic hid command is for. All you need is documentation on what data to send and you are good to go.
    Device Number is obviously the number to the device we want as you could have multiple instances of the device hooked up to your machine.
    VendorID and ProductID are the two numbers that tell windows what the device is. You'll find them with your device's spec sheets.
    Byte Length is asking for the length of your report in bytes. Again, this is dependant upon the device and can be found in it's spec sheets.
    The actual data is the numeric value of the data you want to send, with each byte seperated by a ":"

    Please note that if you want to send hex values, which are the standard, please put a "&h" in front of them instead of a "0x" as that is vb's preferred syntax.
    You can use "&h" for the vendor and product id numbers as well.
    generic hid send data
    ghd Device# Vendor# Product# ByteLength# Bytes
    ghd 1 &HA81 &H701 2 0:&h20 - Writes a two byte report (0 and &h20) to the specified device

    The question is: what data would I need to send to Teensy to set or reset any of its outputs?
    Last edited by Marton; 10-27-2013 at 06:09 AM.

  2. #2
    Junior Member
    Join Date
    Oct 2013
    Bump... anyone?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts