Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Custom character management

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
ch424
Posts: 30
Joined: March 21st, 2006, 6:43 pm
Location: Oxford, UK

Custom character management

Post by ch424 »

Would it be possible, in this super new version of smartie to have a custom character management layer?

eg: A plugin needs to use three custom characters, while another needs one and an a third plugin needs four. At the moment, the chances are that they'd overwrite each other. However, could you make it so that the plugins request to use custom chars, and Smartie does the actual assigning on the display so they don't clash with each other on the same screen.

Or is there a system like this at the moment?

Thanks,

ch424
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

No there is not a system like this...

I suppose that you mean something like a custom character deposit area.
assigning special variable names on this area
something like following:
[Set 1]
1=uparrow : $CustomChar(1,4,14,31,4,4,4,4,4)
2=monkeyl : $CustomChar(2,12,16,0,12,12,0,0,15)
3=monkeyr : $CustomChar(3,6,1,0,6,6,0,0,30)
......
and have to call only uparrow on the screen instead all the definition?
ch424
Posts: 30
Joined: March 21st, 2006, 6:43 pm
Location: Oxford, UK

Post by ch424 »

No, I don't mean that, I'll explain better:

I mean each plugin should have function/variable that smartie calls, and it returns 3 or however many custom characters it needs (ie is currently using), as well as the definition for each.

Then, when the plugin needs to use a custom character, it returns something like $customChar(1) or whatever and smartie then remaps it to one of the custom char memories in the LCD itself.

ch424
Fast351
Developer
Posts: 233
Joined: February 17th, 2006, 3:23 pm
Location: Twin Cities, Minnesota, USA
Contact:

Post by Fast351 »

Yes, custom chars currently collide. The first time the plugin is displayed the characters are put to the screen. The only time this is a problem is when you have two plugins displaying at the same time.

Not sure if there is an elegant solution.
fishthecat
LCD Smartie Fanatic
Posts: 132
Joined: March 9th, 2005, 2:21 pm
Location: UK

Post by fishthecat »

The Tiny Bar plugin now lets you specify which customchar 1-8 you want it to use. This means I can use it along side a 7 bar winamp mini graphic visulisation as it use 1-7.

Maybe more plugins could incorporate customchar selection.
Post Reply