Skip to content

Adding STMF407 compatibility to FastLED lib for OpenFFB #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Mar 26, 2025

Conversation

Sqwince
Copy link
Owner

@Sqwince Sqwince commented Mar 26, 2025

No description provided.

zackees and others added 30 commits February 20, 2025 20:47
Additional platform identifier ARDUINO_GIGA added.
Fixes issues with non recognizable platform when building with Arduino IDE
I'm trying to compile this for Teensy 3.2 and getting a few warnings with platformio

```
In file included from .pio/libdeps/teensy32/FastLED/src/platforms/arm/k20/fastled_arm_k20.h:6,
                 from .pio/libdeps/teensy32/FastLED/src/platforms.h:19,
                 from .pio/libdeps/teensy32/FastLED/src/FastLED.h:70,
                 from src/main.cpp:48:
.pio/libdeps/teensy32/FastLED/src/platforms/arm/k20/fastspi_arm_k20.h:40: warning: "MAX" redefined
   40 | #define MAX(A, B) (( (A) > (B) ) ? (A) : (B))
      |
In file included from .pio/libdeps/teensy32/FastLED/src/fl/str.h:10,
                 from .pio/libdeps/teensy32/FastLED/src/crgb.hpp:12,
                 from .pio/libdeps/teensy32/FastLED/src/pixeltypes.h:11,
                 from .pio/libdeps/teensy32/FastLED/src/cpixel_ledcontroller.h:10,
                 from .pio/libdeps/teensy32/FastLED/src/controller.h:7,
                 from .pio/libdeps/teensy32/FastLED/src/FastLED.h:65,
                 from src/main.cpp:48:
.pio/libdeps/teensy32/FastLED/src/fl/math_macros.h:4: note: this is the location of the previous definition
    4 | #define MAX(a,b) ((a)>(b)?(a):(b))
      |
In file included from .pio/libdeps/teensy32/FastLED/src/platforms/arm/k20/fastled_arm_k20.h:11,
                 from .pio/libdeps/teensy32/FastLED/src/platforms.h:19,
                 from .pio/libdeps/teensy32/FastLED/src/FastLED.h:70,
                 from src/main.cpp:48:
.pio/libdeps/teensy32/FastLED/src/platforms/arm/k20/clockless_block_arm_k20.h:17: warning: "MIN" redefined
   17 | #define MIN(X,Y) (((X)<(Y)) ? (X):(Y))
      |
In file included from .pio/libdeps/teensy32/FastLED/src/fl/str.h:10,
                 from .pio/libdeps/teensy32/FastLED/src/crgb.hpp:12,
                 from .pio/libdeps/teensy32/FastLED/src/pixeltypes.h:11,
                 from .pio/libdeps/teensy32/FastLED/src/cpixel_ledcontroller.h:10,
                 from .pio/libdeps/teensy32/FastLED/src/controller.h:7,
                 from .pio/libdeps/teensy32/FastLED/src/FastLED.h:65,
                 from src/main.cpp:48:
.pio/libdeps/teensy32/FastLED/src/fl/math_macros.h:8: note: this is the location of the previous definition
    8 | #define MIN(a,b) ((a)<(b)?(a):(b))
      |
```
zackees and others added 25 commits March 10, 2025 17:29
Don't define MIN and MAX in platform headers
compiles without errors, but HW doesn't seem to work. Could be a HW issue. will have to test later.
fixing ESP IDF V 5.4 compiler error [-Werror=mismatched-new-delete]
@Sqwince
Copy link
Owner Author

Sqwince commented Mar 26, 2025

Tested on hardware and working.

@Sqwince Sqwince merged commit 37044df into master Mar 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants