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

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.12 seconds.

  1. You can certainly get a lot of direct inputs (no...

    You can certainly get a lot of direct inputs (no mux chips) with Teensy 3.5 or 3.6, but the cost is higher for those boards. Still, might be worthwhile for the much simpler coding. Often...
  2. Replies
    34
    Views
    808

    There are 3 cases: Pins 10-15, 18, 19 use the...

    There are 3 cases:

    Pins 10-15, 18, 19 use the quad timers.

    Pins 0, 1, 24, 25 use the flexpwm timer extra (X) output.

    All the other PWM pins use flexpwm timer normal (A, B) outputs.
  3. Replies
    34
    Views
    808

    Yes, that's the way it was done on Teensy 3.x,...

    Yes, that's the way it was done on Teensy 3.x, because it was done that way on Teensy 2, because Arduino does it that way. But just because we've always done it that way doesn't mean we should.
    ...
  4. Replies
    34
    Views
    808

    Thanks. I'm looking at all these right now.... ...

    Thanks. I'm looking at all these right now....

    cores #397 - merged just now

    cores #385 - was merged in October

    spi #50 - merged just now

    spi #55 - this makes me a little nervous so close...
  5. Replies
    9
    Views
    90

    Run the InputFunctionsComplete example on your...

    Run the InputFunctionsComplete example on your Teensy, and then open the Arduino Serial Monitor. As your PC sends MIDI messages, you should see info about each message Teensy receives printed to the...
  6. Definitely this, at least not help with code...

    Definitely this, at least not help with code which has an incompatible open source license.

    I do believe this is an interesting application. Right now there's no chance I'll work on a thing like...
  7. The Ethernet library does not use the special SPI...

    The Ethernet library does not use the special SPI CS feature. Any digital pin can be used for CS with Ethernet.

    Long ago I did briefly attempt this with Ethernet, but it made almost no...
  8. Could you be more specific about exactly which...

    Could you be more specific about exactly which documentation?

    MOSI0,MISO0,SCK0 (pins 11,12,13) are a separate and fully independent bus from MOSI1,MISO1,SCK1 (pins 0,1,32).
  9. Replies
    7
    Views
    88

    Best to check the reference manual for these...

    Best to check the reference manual for these finer points of exactly how the hardware responds.

    But to summarize quickly, yes, when the USB hardware hears an IN token from the USB host, will only...
  10. Replies
    7
    Views
    84

    Here's the untested PCB... ...

    Here's the untested PCB...

    https://oshpark.com/shared_projects/vrRZki32

    18426
  11. Replies
    34
    Views
    808

    I'm going to package up 1.49-beta3 soon. Now's...

    I'm going to package up 1.49-beta3 soon.

    Now's the time to remind me of stuff I've forgotten to test or merge....
  12. Replies
    34
    Views
    808

    Opps. Fixed it. ...

    Opps. Fixed it.

    https://github.com/PaulStoffregen/cores/commit/bac5b587f5ee7c91b0498f51f47129dd7d4c77a8
  13. Replies
    34
    Views
    808

    I committed a fix for this problem. ...

    I committed a fix for this problem.

    https://github.com/PaulStoffregen/cores/commit/9026659eaa8ad8df92134f93cb2b8a7af652cf49

    Can't say I'm proud of having to add a 30 ns delay. I still don't...
  14. Replies
    7
    Views
    88

    You'll probably need to modify the source, since...

    You'll probably need to modify the source, since tx_state is declared static.

    But regardless of how you go about things, hopefully this info about how the USB device code works will help.
  15. Look at the _VectorsFlash array in mk20dx128.c. ...

    Look at the _VectorsFlash array in mk20dx128.c.

    https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c#L268

    Also, if you *really* want to learn how the processor works,...
  16. Replies
    19
    Views
    204

    Hope you'll confirm whether or not soldering a...

    Hope you'll confirm whether or not soldering a wire between those 2 points makes your board work. That sort of feedback can really help everyone else in the future when they're struggling to...
  17. Replies
    7
    Views
    88

    Looks like you're calling the not-public API...

    Looks like you're calling the not-public API functions within usb_dev.c. That's fine... the code is open source and meant to be used. But since these aren't the normal public API, their precise...
  18. Wow, looks like a really interesting project. ...

    Wow, looks like a really interesting project. Hope you'll share some more info as it develops?

    I'm really curious to hear if you see much of a difference in timing & latency with Teensy 4.0's USB...
  19. No, it only supports stereo. You can use stereo...

    No, it only supports stereo. You can use stereo input and stereo output simultaneously, but only 1 instance of each.




    Yes, it is theoretically possible, if your programming skill and...
  20. Replies
    34
    Views
    808

    Opps, I messed up the MacOS Catalina build. ...

    Opps, I messed up the MacOS Catalina build. Fixed it just now and uploaded a fresh file.

    The new Teensyduino_MacOS_Catalina.zip has shasum e72ba892097e5f849f71706d8b14d2abaea14926.

    The...
  21. Yes, but later. Audio requires isochronous...

    Yes, but later.

    Audio requires isochronous transfer, which is more complex and more difficult to test. We use it in asynchronous mode, which uses a slightly different rate feedback protocol at 12...
  22. Replies
    34
    Views
    808

    I'll confess... I tested the new USB stuff mostly...

    I'll confess... I tested the new USB stuff mostly with Linux and a quick check on Mac, but not Windows. I use Linux as my primary system, and the Macbook Air was set up due to the recent work on...
  23. Replies
    19
    Views
    204

    Schematic looks like it ought to work. Maybe...

    Schematic looks like it ought to work.

    Maybe something wrong in the layout? Here's a project where the schematic was perfect, but the problem turned out to be a missing trace in the layout. It...
  24. Replies
    13
    Views
    206

    For CV into an analog pin ...

    For CV into an analog pin

    https://www.pjrc.com/control-voltage-to-1-2v-analog-input-pin/

    https://www.pjrc.com/wp-content/uploads/2019/01/controlvoltage.png
  25. Oh that doesn't sound right. I'm pretty sure you...

    Oh that doesn't sound right. I'm pretty sure you need to connect VDD (pin 5) of the ICS40300 to 3.3V on the Teensy.
  26. Teensyduino 1.49-beta2 is now available, with USB...

    Teensyduino 1.49-beta2 is now available, with USB MIDI support for Teensy 4.0.

    https://forum.pjrc.com/threads/58654-Teensyduino-1-49-Beta-2

    Please give this a try and let me know how the USB...
  27. Replies
    30
    Views
    1,052

    Sorry, too late for 1.49-beta2. I'm uploading it...

    Sorry, too late for 1.49-beta2. I'm uploading it right now.
  28. Replies
    19
    Views
    204

    Can't read the schematic. Maybe a PDF would be...

    Can't read the schematic. Maybe a PDF would be better?
  29. Replies
    30
    Views
    1,052

    I've added this to my list of issues to...

    I've added this to my list of issues to investigate. Not going to hold up 1.49-beta2 for this.
  30. Replies
    30
    Views
    1,052

    Yes. Please send a pull request. Will probably...

    Yes. Please send a pull request. Will probably be in 1.49-beta3, since I'm about to package up beta2...
  31. Well of course the Keypad library examples only...

    Well of course the Keypad library examples only send to the serial monitor. They use Serial.print().

    You need to copy and paste code, maybe even improvise slightly, to create a hybrid of these 2...
  32. I've committed USB MIDI code for Teensy 4.0 to...

    I've committed USB MIDI code for Teensy 4.0 to github.

    https://github.com/PaulStoffregen/cores

    If you're feeling adventurous, edit your boards.txt file to enable MIDI in the USB Type menu, and...
  33. Replies
    4
    Views
    333

    Yes, this should also work using the USBHost_t36...

    Yes, this should also work using the USBHost_t36 library.

    Only Teensy 3.6 and 4.0 have USB host. They have only a single USB host port, so you'll need a USB hub to connect 2 USB MIDI devices.
    ...
  34. Replies
    30
    Views
    1,052

    Yes, this. The other ones with a dedicated...

    Yes, this.

    The other ones with a dedicated struct typedef has (mostly) been done that way.

    Eventually we'll probably get rid of all the old offset stuff. I did that before the beta test...
  35. Replies
    30
    Views
    1,052

    I'm not quite sure either.... Yes, please...

    I'm not quite sure either....



    Yes, please do.

    But do not delete the already defined full register names. Convert them to the new struct. I believe there's at least one pull request still...
  36. Replies
    63
    Views
    2,839

    FWIW, we are currently using these 5 hardened...

    FWIW, we are currently using these 5 hardened runtime entitlements on the JRE and top-level bundle, because they're required for Java 8:

    com.apple.security.cs.allow-jit...
  37. Replies
    63
    Views
    2,839

    All the info I've found so far is sandbox is...

    All the info I've found so far is sandbox is meant for programs distributed by Apple's app store and hardened runtime is intended for programs distributed outside the Apple app store.

    My (perhaps...
  38. Replies
    30
    Views
    1,052

    Yes, I did the HID ones and I'm working on MIDI...

    Yes, I did the HID ones and I'm working on MIDI now. I did a few quick tests on keyboard, mouse and joystick. Touchscreen still needs more work.

    My plan is for 1.49-beta2 within the next few...
  39. Replies
    14
    Views
    131

    That is a wrong assumption. The mixer and amp...

    That is a wrong assumption. The mixer and amp handle zero gain as a special case. They stop sending data, which does affect the CPU usage of most (but not all) objects connected to their outputs.
    ...
  40. This one, right? ...

    This one, right?

    https://www.invensense.com/download-pdf/ics-40300-datasheet/

    Looks like it should work. Can you show us photos of how you've actually connected everything? And the exact code...
  41. That confirms you *do* have a libraries folder in...

    That confirms you *do* have a libraries folder in Documents.

    Look again, it's in Documents/Arduino/libraries/Audio.

    You need to move or delete that library, because it's interfering with...
  42. I do not know what's wrong here. But I do have...

    I do not know what's wrong here. But I do have another idea that might help give more info.

    Click File > Preferences and turn on "Show verbose output during compilation". Then copy this into the...
  43. Any chance you have a conflicting library in your...

    Any chance you have a conflicting library in your Documents/libraries folder? Anything you install there always overrides all the other locations.
  44. Use the Keypad library. ...

    Use the Keypad library.

    https://www.pjrc.com/teensy/td_libs_Keypad.html
  45. Really good to know it's working well. I've...

    Really good to know it's working well. I've already started on the other USB types with this receive code. Will probably start pushing code to github later today.

    Looks like 8 buffers will be a...
  46. Replies
    63
    Views
    2,839

    Maybe try editing Contents/Info.plist. Look for...

    Maybe try editing Contents/Info.plist. Look for these lines:



    <key>LSMinimumSystemVersion</key>
    <string>10.8</string>

    Arduino 1.8.5 definitely does work on 10.7. It has an older Java...
  47. Replies
    4
    Views
    99

    I replied just now on your main thread. There...

    I replied just now on your main thread.

    There are 2 separate issues here... how tech stuff works, and how communicating with humans works. This forum is about DIY electonics. We all know...
  48. I'm not going to get directly involved in your...

    I'm not going to get directly involved in your project, but I might add another USB MIDI example for use of rotary encoders.

    First, I would like to ask, have you run *any* of the USB MIDI examples...
  49. Replies
    4
    Views
    99

    You've created at least 4 threads, which appear...

    You've created at least 4 threads, which appear to be all about the same thing. This one looks like the main conversation.
    ...
  50. Please do not create duplicate threads. Continue...

    Please do not create duplicate threads. Continue this here:

    https://forum.pjrc.com/threads/58564-Teensy-3-2-USB-MIDI-Controller-Coding-Assistance-*Willing-to-Pay*
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4