|
|
Home » Developing U++ » UppHub » LedLabel new package
|
|
|
|
|
Re: LedLabel new package [message #42477 is a reply to message #42476] |
Tue, 18 March 2014 15:11   |
 |
deep
Messages: 267 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi Koldo,
Quote: | I have not used .usc file in my programs before.
Any help welcome. Small example for my package. So that I can expand on it
|
I checked some .usc files from codebase. I think I will try it first.
I do constructor like this. Then what should be syntax for pre-configured LEDs?
LedLabel(Image on, Image off);
Warm Regards
Deepak
[Updated on: Tue, 18 March 2014 19:24] Report message to a moderator
|
|
|
Re: LedLabel new package [message #42480 is a reply to message #42477] |
Tue, 18 March 2014 20:31   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Deep,
You are doing excelent job. But is there possibility to create procedural led painting? It will help a lot... Code sample:
class LedLable {
public:
LedLable(const Color& ledColor) {
this->ledColor = ledColor;
// Do something with ledColor information.
}
private:
Color ledColor;
}
LedLable myLedLable(Color(0, 255, 0)); // <- Any color should be accepted here.
The second idea is to create array of leds (Similar sollution is implemented in LabView). More information you can find on following website: http://www.pererikstrandberg.se/blog/index.cgi?page=LabviewS impleForAndWhileLoops (First screenshot).
BTW, you can create whole package "LedCtrlLib" which will contain whole LED stuff. Think about it!
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Tue, 18 March 2014 20:36] Report message to a moderator
|
|
|
|
|
|
|
Re: LedLabel new package [message #42970 is a reply to message #42467] |
Fri, 18 April 2014 16:31   |
 |
deep
Messages: 267 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi,
I have now modified my package. Attempted to make changes as suggested.
This is my first attempt to use "usc" file.
Comments suggestions welcome.
I am using MakeImage to get Grayscale image. Are there any other way to create light grayscale image?
ImgOff = MakeImage(imgon, Grayscale) ;
Array and "procedural led painting" is not yet added.
Warm Regards
Deepak
[Updated on: Fri, 18 April 2014 16:33] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun Apr 27 01:33:54 CEST 2025
Total time taken to generate the page: 0.01636 seconds
|
|
|