Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: prnthp

Search: Search took 0.00 seconds.

  1. You can modify the PID in usb_desc.h...

    You can modify the PID in usb_desc.h.



    https://forum.pjrc.com/threads/26988-Teensy-3-1-PID-and-VID-to-emulate-a-Touchscreem?p=57430&viewfull=1#post57430
  2. I just had time to get back to the project and...

    I just had time to get back to the project and wanted to chime in that @KurtE's branch does indeed work with my full project. Thank you all for the great work!
  3. @Paul I whipped up a super simple program that...

    @Paul

    I whipped up a super simple program that just writes a 64 byte HID packet with 0xAB in the first byte every 100 ms to the device with VID: 0x16C0 PID: 0x0486 and usage page 0xFFAB....
  4. I had the same hunch and reverted the code in...

    I had the same hunch and reverted the code in that function back to 1.48. However, it didn't seem to help for me. It seems to hang much later than normally though, after possibly thousands of packets...
  5. Then it looks like timing isn't the issue, since...

    Then it looks like timing isn't the issue, since the display.display() calls were blocking everything else. There are several threads about the SSD1306 and it seems like there is a better way to...
  6. I don't know how fast the SD card can be written...

    I don't know how fast the SD card can be written to, but I bet it's a lot faster than your 40 ms interval - probably in the order of 0.1 ms. IMO you should write to it just double the rate of your...
  7. Seems like you're hammering the SD card with...

    Seems like you're hammering the SD card with writes in the main loop(). Try limiting the writes to a lower frequency.



    elapsedMicros loop_timer;
    void loop()
    {
    if (loop_timer < 1000) //...
  8. Replies
    77
    Views
    4,199

    I'm getting random crashes on macOS 10.15,...

    I'm getting random crashes on macOS 10.15, presumably after checking the Tools -> Port menu. Is there a log file somewhere I can submit?

    Also, I'd like to bring up the RawHID issue ever since TD...
  9. ^ The above code is missing time = 0; at the end...

    ^ The above code is missing time = 0; at the end of the main loop(). I've tested it again and the issue is still there for TD1.49 - TD1.51.

    Just wanted to add that it still hangs on TD 1.52 Beta 1.
  10. Thanks @mstrthalias, @defragster. Here's the...

    Thanks @mstrthalias, @defragster.

    Here's the updated code w/o all the interrupt stuff. Like what @mstrthalias has found, it works fine for single HID packets but randomly crashes once consecutive...
  11. Thanks for all the help! I haphazardly assumed...

    Thanks for all the help!

    I haphazardly assumed that

    RawHID.recv(rx_buffer, 1);
    would be blocking and the 1 ms timeout would handle that issue for me, looks like it is not.

    I tried...
  12. Yes. Still hangs on both TD 1.51 and PIO...

    Yes. Still hangs on both TD 1.51 and PIO teensy@4.8.0. I just double-checked right now to make sure.
  13. It does support the Teensy 4.0. It's lightyears...

    It does support the Teensy 4.0. It's lightyears ahead of Arduino IDE-wise since it's an extension of VS Code.
  14. RawHID.recv() hangs after updating to Teensyduino 1.4.9 or higher for Teensy 4.0

    Hello

    I've been having trouble receiving raw HID packets after upgrading to Teensyduino 1.4.9 or higher. I've boiled my code down to its simplest form and by simply switching from 1.4.8 to 1.4.9...
  15. Replies
    62
    Views
    6,921

    Thanks for the clarification, raw packets is all...

    Thanks for the clarification, raw packets is all I need!
  16. Replies
    62
    Views
    6,921

    Has the experimental RawHID mode for T4 from...

    Has the experimental RawHID mode for T4 from beta#2 been disabled? All I can select is Serial from the USB Type menu.
Results 1 to 16 of 16