Go Down

Topic: ShiftPWM support topic. Latest update: Schematics, high power LED's, LED strips (Read 83 times) previous topic - next topic


This library is amazing and has saved me a TON of work, thank you VERY much for all of your hard work.  Great stuff!  I would absolutely love to see some articles from you regarding optimizing and performance tweaking for Arduino. 


This library is amazing and should have been written as soon as shift registers were introduced on the Arduino website. It will save me plenty of time now that I wanted to do a high-power LED project. What I would like however is a "get" function for the array that stores the PWM values. I notice that in CShiftPWM.h there is a public variable named "unsigned char * m_PWMValues;". However I am not sure how to access this value.


You could add this to CShiftPWM.cpp:

unsigned char CShiftPWM::GetOne(int output){
    return m_PWMValues[output];

And add to CShiftPWM.h the prototype for the public member function:

unsigned char GetOne(int output);

I have designed a 24 channel LED driver board for high power LED's. The constant current outputs can be adjusted from 60 to 350 mA and it is directly compatible with the library. Size is about the same as the Arduino. The first prototype will arrive in a week. Would you be interested in such a board? It is not in production at the moment, but will be soon.


Excellent. I will make use of that get function immediately. And I would love to take a look at the board when it is done.


Loving the library, but I'm finding that I can't get decent output on serial LCDs-- character LCD backpacks from both SparkFun and Modern Device (LCD117) are printing odd characters.  I've tried using the ATmega328's built-in serial port and softwareSerial, and I get the same strange results.

Regular serial reporting seems OK though, so I'm confused.  Any clues would be appreciated!

I'm going to try stripping all serial reporting out of the library and see if I get any different results...
My Arduino blog: http://jmsarduino.blogspot.com
Comprehensive (?) Arduino-compatible board list: http://tinyurl.com/allarduinos

Go Up