PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

70 rindas
3.6KB

  1. #ifndef __INC_FASTLED_CONFIG_H
  2. #define __INC_FASTLED_CONFIG_H
  3. #include "FastLED.h"
  4. ///@file fastled_config.h
  5. /// contains definitions that can be used to configure FastLED at compile time
  6. // Use this option only for debugging pin access and forcing software pin access. Note that
  7. // software pin access only works in Arduino based environments. Forces use of digitalWrite
  8. // methods for pin access vs. direct hardware port access
  9. // #define FASTLED_FORCE_SOFTWARE_PINS
  10. // Use this option only for debugging bitbang'd spi access or to work around bugs in hardware
  11. // spi access. Forces use of bit-banged spi, even on pins that has hardware SPI available.
  12. // #define FASTLED_FORCE_SOFTWARE_SPI
  13. // Use this to force FastLED to allow interrupts in the clockless chipsets (or to force it to
  14. // disallow), overriding the default on platforms that support this. Set the value to 1 to
  15. // allow interrupts or 0 to disallow them.
  16. // #define FASTLED_ALLOW_INTERRUPTS 1
  17. // #define FASTLED_ALLOW_INTERRUPTS 0
  18. // Use this to allow some integer overflows/underflows in the inoise functions.
  19. // The original implementions allowed this, and had some discontinuties in the noise
  20. // output. It's technically an implementation bug, and was fixed, but you may wish
  21. // to preserve the old look and feel of the inoise functions in your existing animations.
  22. // The default is 0: NO overflow, and 'continuous' noise output, aka the fixed way.
  23. // #define FASTLED_NOISE_ALLOW_AVERAGE_TO_OVERFLOW 0
  24. // #define FASTLED_NOISE_ALLOW_AVERAGE_TO_OVERFLOW 1
  25. // Use this toggle whether or not to use the 'fixed' FastLED scale8. The initial scale8
  26. // had a problem where scale8(255,255) would give you 254. This is now fixed, and that
  27. // fix is enabled by default. However, if for some reason you have code that is not
  28. // working right as a result of this (e.g. code that was expecting the old scale8 behavior)
  29. // you can disable it here.
  30. #define FASTLED_SCALE8_FIXED 1
  31. // #define FASTLED_SCALE8_FIXED 0
  32. // Use this toggle whether to use 'fixed' FastLED pixel blending, including ColorFromPalette.
  33. // The prior pixel blend functions had integer-rounding math errors that led to
  34. // small errors being inadvertently added to the low bits of blended colors, including colors
  35. // retrieved from color palettes using LINEAR_BLEND. This is now fixed, and the
  36. // fix is enabled by default. However, if for some reason you wish to run with the old
  37. // blending, including the integer rounding and color errors, you can disable the bugfix here.
  38. #define FASTLED_BLEND_FIXED 1
  39. // #define FASTLED_BLEND_FIXED 0
  40. // Use this toggle whether to use 'fixed' FastLED 8- and 16-bit noise functions.
  41. // The prior noise functions had some math errors that led to 'discontinuities' in the
  42. // output, which by definition should be smooth and continuous. The bug led to
  43. // noise function output that had 'edges' and glitches in it. This is now fixed, and the
  44. // fix is enabled by default. However, if for some reason you wish to run with the old
  45. // noise code, including the glitches, you can disable the bugfix here.
  46. #define FASTLED_NOISE_FIXED 1
  47. //#define FASTLED_NOISE_FIXED 0
  48. // Use this to determine how many times FastLED will attempt to re-transmit a frame if interrupted
  49. // for too long by interrupts.
  50. #ifndef FASTLED_INTERRUPT_RETRY_COUNT
  51. #define FASTLED_INTERRUPT_RETRY_COUNT 2
  52. #endif
  53. // Use this toggle to enable global brightness in contollers that support is (ADA102 and SK9822).
  54. // It changes how color scaling works and uses global brightness before scaling down color values.
  55. // This enable much more accurate color control on low brightness settings.
  56. //#define FASTLED_USE_GLOBAL_BRIGHTNESS 1
  57. #endif