Compare commits

...

3 Commits
0.16 ... master

Author SHA1 Message Date
PaulStoffregen
54c4315c84 Update readme with SCLK overshoot info 2023-04-06 16:19:08 -07:00
Paul Stoffregen
73fa88476a
Merge pull request #20 from h4yn0nnym0u5e/warningfix/TD158
Fix warnings raised by gcc toolchain 11.3.1
2022-09-21 10:58:42 -07:00
Jonathan Oakley
82119a9138 Fix warnings raised by gcc toolchain 11.3.1 2022-09-21 16:30:33 +01:00
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#Tlc5940 Library# # Tlc5940 Library
16 channel PWM LED driver based on the Texas Instruments TLC5940 chip. 16 channel PWM LED driver based on the Texas Instruments TLC5940 chip.
@ -11,3 +11,9 @@ http://playground.arduino.cc/Learning/TLC5940
https://github.com/PaulStoffregen/Tlc5940 https://github.com/PaulStoffregen/Tlc5940
![Tlc5940 with Teensy 2.0](http://www.pjrc.com/teensy/td_libs_Tlc5940_1.jpg) ![Tlc5940 with Teensy 2.0](http://www.pjrc.com/teensy/td_libs_Tlc5940_1.jpg)
The TLC5940 chip SCK pin is sensitive to signal overshoot. When used with
Teensy 4.0 or other high speed hardware, especially if using long wires, you
may need to add a resistor inline with the SCLK signal.
https://forum.pjrc.com/threads/71009?p=323766&viewfull=1#post323766

View File

@ -39,7 +39,7 @@ volatile uint16_t tlc_animationPeriodsPerFrame;
volatile uint16_t tlc_animationPeriodsWait; volatile uint16_t tlc_animationPeriodsWait;
volatile void tlc_animationXLATCallback(void); volatile void tlc_animationXLATCallback(void);
void tlc_playAnimation(const uint8_t PROGMEM *animation, uint16_t frames, uint16_t periodsPerFrame); void tlc_playAnimation(const uint8_t /* PROGMEM */ *animation, uint16_t frames, uint16_t periodsPerFrame);
/** \addtogroup ExtendedFunctions /** \addtogroup ExtendedFunctions
\code #include "tlc_animations.h" \endcode \code #include "tlc_animations.h" \endcode
@ -55,7 +55,7 @@ void tlc_playAnimation(const uint8_t PROGMEM *animation, uint16_t frames, uint16
\param periodsPerFrame number of PWM periods to wait between each frame \param periodsPerFrame number of PWM periods to wait between each frame
(0 means play the animation as fast as possible). (0 means play the animation as fast as possible).
The default PWM period for a 16MHz clock is 1.024ms. */ The default PWM period for a 16MHz clock is 1.024ms. */
void tlc_playAnimation(const uint8_t PROGMEM *animation, uint16_t frames, uint16_t periodsPerFrame) void tlc_playAnimation(const uint8_t /* PROGMEM */ *animation, uint16_t frames, uint16_t periodsPerFrame)
{ {
tlc_currentAnimation = animation; tlc_currentAnimation = animation;
tlc_animationFrames = frames; tlc_animationFrames = frames;