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

Thread: Compiler for Teensy C code?

  1. #1
    Member dlchambers's Avatar
    Join Date
    Nov 2012
    Location
    Elkins, NH
    Posts
    47

    Compiler for Teensy C code?

    I'm interested in playing with this: https://www.pjrc.com/teensy/rawhid.html
    What's the suggested compiler (and/or IDE) for working with Teensy C code?

    Thanks,
    -Dave

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    27,647
    There's a newer version of that code build into Teensyduino. Just use the Arduino IDE and select RawHID from Tools > USB Type.

  3. #3
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,825
    Quote Originally Posted by dlchambers View Post
    I'm interested in playing with this: https://www.pjrc.com/teensy/rawhid.html
    What's the suggested compiler (and/or IDE) for working with Teensy C code?

    Thanks,
    -Dave
    After you get your feet wet with the Arduino IDE for Teensy 2, Teensy 3, and if you wish for a more sophisticated IDE later, there are several free ones, including Eclipse, Visual Micro (a plugin for Atmel Visual Studio 6). I use the latter. Indeed with it, you can use the same code files with either IDE.

  4. #4
    Member dlchambers's Avatar
    Join Date
    Nov 2012
    Location
    Elkins, NH
    Posts
    47
    I have played with the Teensyduino RawHID sample. Problem with that is setting my own VID/PID values and Mfr/Prod strings.
    I'm aware of Teensy 3.x's usb_names.h, and have played with it a bunch, but have never been able to get that to work. So I thought to punt on the Arduino env and just do raw C++ where I get to define the USB values right there in my file.
    But I'd absolutely use the Teensyduino version if usb_names.h worked... any progress on that?

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
  •