Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 31 of 31

Thread: Possible WS2812 Library conflict with USBMidi?

  1. #26
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,296
    Not quite sure what you mean by "TEENSY_OPT_SMALLEST_CODE". That's not a name used anywhere in the code I've published. Maybe it's something specific to PlatformIO which I do not know?


    Quote Originally Posted by vince.cimo View Post
    Yes, I can confirm that this code snipped DOES NOT work with the Arduino IDE using Faster optimization & Serial + Midi setting.
    I'll add this to my list of issues to investigate.

    When you say "this code snipped", you mean the code on msg #3, right? Or should I look at some other code when I investigate this problem?

  2. #27
    Quote Originally Posted by PaulStoffregen View Post
    Not quite sure what you mean by "TEENSY_OPT_SMALLEST_CODE". That's not a name used anywhere in the code I've published. Maybe it's something specific to PlatformIO which I do not know?
    In Arduino IDE it's named as "Smallest Code" which adds "-Os --specs=nano.specs" flags.

  3. #28
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,296
    Yes, that is the default for Teensy LC.

  4. #29
    Could we use for other Teensy 3+ the same profile?

  5. #30
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,296
    You can use any settings you like.

    But if you wish to match the same defaults at Teensyduino, you'll need different defaults. Teensy 3.x defaults to "Faster", Teensy LC defaults to "Smallest Code". Later this year, Teensy 4.x is likely to have a different default.

    This code should work with any of the settings. That is fails with a non-default setting is a bug. I will investigate and fix, but currently I'm busy with the beta test of new hardware, so it may not be a quick time frame.

  6. #31
    Thanks! Fixed in https://github.com/platformio/platfo...ses/tag/v4.1.0

    Please run `$ pio update` in PlatformIO IDE Terminal or using PlatformIO IDE > PIO Home > Platforms > Updates.

Posting Permissions

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