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

Thread: Can I use the RawHID example in a Teensy 2.0++ arduino sketch?

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Location
    North Alabama
    Posts
    4

    Can I use the RawHID example in a Teensy 2.0++ arduino sketch?

    I have a box with a serial LCD, (using serLCD.h), and 5 buttons and a switch. It receives a +5 pulse from a custom radio
    when a radio signal is received.
    I'm using a nice Maxim MAX6818 debounce chip for all of the switches and the pulse through a 3904. (works great).
    My code is an arduino sketch that uses several interrupts and turns LED's off an on based on input and prints to the LCD.
    All of the interrupts are calling their ISR's and I simply use the ISR's to set a boolean saying I received a certain interrupt
    and check these in the loop(). All sections are working as expected.

    So for the next step I want to send a message to a windows app when I receive an interrupt from the radio pulse.
    I would like to use RawHID to do this. Is it possible to use RawHID in a sketch?

    I've only use arduino sketches so far, so if it isn't possible, I can take the plunge and convert my sketch to c....
    suggestions?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,169
    Quote Originally Posted by plbreith View Post
    I would like to use RawHID to do this. Is it possible to use RawHID in a sketch?
    Yes. From the Tools > USB Type menu, select RawHID.

    You might open the example from File > Examples > Teensy > USB_RawHID > Basic to get started.

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Location
    North Alabama
    Posts
    4
    Quote Originally Posted by PaulStoffregen View Post
    Yes. From the Tools > USB Type menu, select RawHID.

    You might open the example from File > Examples > Teensy > USB_RawHID > Basic to get started.
    Thanks!
    I'll try it tonight.

  4. #4
    Junior Member
    Join Date
    Apr 2013
    Location
    North Alabama
    Posts
    4
    Quote Originally Posted by plbreith View Post
    Thanks!
    I'll try it tonight.
    worked great! Thanks.

Tags for this Thread

Posting Permissions

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