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; generated 3 minute(s) ago.

  1. 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...
  2. 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...
  3. Replies
    4
    Views
    317

    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.
    ...
  4. Replies
    23
    Views
    818

    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...
  5. Replies
    23
    Views
    818

    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...
  6. Replies
    62
    Views
    2,546

    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...
  7. Replies
    62
    Views
    2,546

    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...
  8. Replies
    23
    Views
    818

    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...
  9. Replies
    14
    Views
    88

    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.
    ...
  10. 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...
  11. 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...
  12. 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...
  13. 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.
  14. Use the Keypad library. ...

    Use the Keypad library.

    https://www.pjrc.com/teensy/td_libs_Keypad.html
  15. 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...
  16. Replies
    62
    Views
    2,546

    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...
  17. Replies
    4
    Views
    77

    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...
  18. 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...
  19. Replies
    4
    Views
    77

    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.
    ...
  20. 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*
  21. Replies
    1
    Views
    26

    Please do not create duplicate threads. ...

    Please do not create duplicate threads.

    https://forum.pjrc.com/threads/58632-Teensy-3-5-Coding-Problem
  22. Difficult to say when I can't run it here. This...

    Difficult to say when I can't run it here. This USB code is pretty new, so it's quite possible there may be undiscovered bugs.

    If you can give me a test case to run here, I can try investigating....
  23. If your program spends time doing work to...

    If your program spends time doing work to "consume" the incoming data, like a blocking write to SPI for 4-wire addressable LEDs, those buffers will allow USB to receive the next incoming data while...
  24. Answer here:...

    Answer here:
    https://forum.pjrc.com/threads/57132-Bootloader-Chip-For-Teensy-4-0?p=221811&viewfull=1#post221811
  25. Thanks for testing. Really good to see the new...

    Thanks for testing. Really good to see the new USB code is running faster!

    If you're feeling like experimenting, any chance you might try running this with different numbers of buffers inside...
  26. Everything you've described sounds like Teensy...

    Everything you've described sounds like Teensy 4.0 is working perfectly, but you're programming a HEX file onto it which does nothing.

    On this page, you can download known-good HEX files. Click...
  27. Replies
    62
    Views
    2,546

    Definitely use 1.49-beta1 from msg #43...

    Definitely use 1.49-beta1 from msg #43.

    Unless any Mac-specific problems turn up or Arduino makes a non-beta release, all remaining work planned for 1.49 is for the code running on Teensy. The...
  28. Sure does look like a bug in Windows, maybe even...

    Sure does look like a bug in Windows, maybe even a buffer overflow, judging by the sudden appearance of stuff about PCI bus devices in what looks like 16 bit wchar format that Windows uses...
  29. Replies
    62
    Views
    2,546

    Thanks Theremingenieur, hpyle, grahamguitarman,...

    Thanks Theremingenieur, hpyle, grahamguitarman, jwx49 for testing. It's a huge help.

    If I could ask you one more question... do you use the touch bar? I don't own any Macbooks new enough to have...
  30. The urgent question right now is whether the USB...

    The urgent question right now is whether the USB code on the Teensy side is working properly. With the recent tests on issue #401, and many tests I did before this week's MacOS Catalina work, and...
  31. One other variable to consider is your Mac's...

    One other variable to consider is your Mac's power source. Apple's CDC driver uses a *lot* of CPU time (for reasons unknown, Windows & Linux drivers don't do this) when receiving data at high speed....
  32. Red LED blinking (slowly) means something is...

    Red LED blinking (slowly) means something is wrong with the USB cable or port. It only does the slow blink when you're in bootloader mode, but your PC hasn't performed any USB communication, not...
  33. Simply including those other libs will not make...

    Simply including those other libs will not make Adafruit_NeoMatrix play nice. Adafruit designed their library to block interrupts.

    To make this work smoothly, you need to completely remove all...
  34. Windows CMD is slow, much slower than the Arduino...

    Windows CMD is slow, much slower than the Arduino Serial Monitor.

    Usually when I run this, it will show an impossibly high lines/sec speed, like 600000 to 750000. But just by watching which digit...
  35. While working on the teensy_serialmon.exe that's...

    While working on the teensy_serialmon.exe that's in 1.49-beta1, I did quite a bit of testing running it from a CMD window. It expects a single input on the command line, which is the port name shown...
  36. Why would you want this? What's the practical...

    Why would you want this? What's the practical purpose, that's worth risking having too many cooks in the kitchen?

    If you want a big block of 100K for a buffer, it's so very simple to just create...
  37. Technically, the linker only creates symbols used...

    Technically, the linker only creates symbols used by startup.c. Compiling & linking your program results in a HEX file with data that goes only into the flash memory. All configuration of how the...
  38. Yes, the documented memory layout is based on the...

    Yes, the documented memory layout is based on the defaults you get from startup.c and imxrt1062.ld.

    But to some extent, it's also based on what the hardware provides. No matter what you do in...
  39. Don't update to Catalina. But DO run the...

    Don't update to Catalina. But DO run the 1.49-beta1 for Catalina on your Mac running Mojave. Also run the normal 1.49-beta1, where you install it into a copy of Arduino 1.8.10.

    Those 2 are...
  40. Have you tried with 1.49-beta1? Either the...

    Have you tried with 1.49-beta1? Either the normal way or this build for Catalina? (which should work on Mojave)

    The USB device code has some very substantial improvements in 1.49-beta1. The raw...
  41. You might try running teensy_serialmon in...

    You might try running teensy_serialmon in Terminal, without Arduino. To do this, first make a note of the USB number shown in the lower right corner of the Arduino window.

    Then open Terminal and...
  42. I'm going to get back to USB stuff late tonight...

    I'm going to get back to USB stuff late tonight or early tomorrow, now that the MacOS Catalina stuff is at a good beta testing stage.
  43. I've added a link to the AltSoftSerial readme...

    I've added a link to the AltSoftSerial readme file.

    https://github.com/PaulStoffregen/AltSoftSerial/commit/c9faaee57a0dce1509cb5a0f48aebd83f215983a

    Hopefully that will help people find this if...
  44. These libs won't be shown in Arduino's "Manage...

    These libs won't be shown in Arduino's "Manage Libraries", because they're written directly into the Teensy platform folder.

    You also won't see them in the File > Examples menu when any non-Teensy...
  45. Replies
    62
    Views
    2,546

    Here is the first completely 100% signed and...

    Here is the first completely 100% signed and hardened runtime test. This copy is Apple notarized, so you should see only the "downloaded from internet" warning, but no warnings that Apple hasn't...
  46. Replies
    36
    Views
    358

    Why are you again asking for the process to read...

    Why are you again asking for the process to read something on the host, when you have clearly said you're running software you don't control on the host?
  47. Replies
    62
    Views
    2,546

    Yes. In fact, I probably will have to do that. ...

    Yes. In fact, I probably will have to do that. This build without dark mode probably can not pass all the notarization requirements which go into effect in January 2020.

    But while I'm still...
  48. Replies
    62
    Views
    2,546

    I've managed to make a signed copy of...

    I've managed to make a signed copy of Arduino+Teensyduino.

    EDIT: link removed. Please use the newer code on msg #43.

    This is using Apple's hardened runtime, with 5 entitlements Java 8 needs. ...
  49. Replies
    62
    Views
    2,546

    Yes, that's right. When a program lacks the...

    Yes, that's right. When a program lacks the extra signature from Apple proving it's been through their notarization check, MacOS tries to connect to servers at Apple to look up the software. I...
  50. Replies
    13
    Views
    179

    No, that's definitely not normal. If you have...

    No, that's definitely not normal. If you have 2.2K pullup resistors (as mentioned in msg #1), both SDA and SCL should measure 3.3V.
Results 1 to 50 of 499
Page 1 of 10 1 2 3 4