|
Hi there
I just go myself a LCD display to toy with and
realised that I needed to add the correct x/y definition to lcd.py
So I put together a small mod for
this.
My display is a 16x2 and that limits what can be
display quite a bit.
In the bottom part you find that I cut the track no
from the title... it doesn't display very well there with just 16
chars.
I tried to move it to the next line without much
success though..
Joakim.
---------------------
Index:
lcd.py
=================================================================== RCS file: /cvsroot/freevo/freevo/src/plugins/lcd.py,v retrieving revision 1.4 diff -r1.4 lcd.py 313a314,354 > }, > > 2 : # 2 lines display > > { 16 : # 16 chars per line > > # Welcome screen > { "welcome" : > { "title" : ( "title", > "1 1 Freevo", > None ) > }, > > "menu" : > { "title_v" : ( "scroller", > "1 1 %d 1 h 2 \"%s\"", > "( self.width, menu.heading )" ), > "item_v" : ( "scroller", > "1 2 %d 2 h 2 \"%s\"", > "( self.width, title )" ) > }, > > "audio_player" : > { "music_v" : ( "scroller", > "1 1 %d 1 h 2 \"%s\"", > "( self.width, title )" ), > "time_v" : ( "string", > "1 2 ' % 2d:%02d/% 2d:%02d'", > "( int(player.length / 60), int(player.length % 60)," + > " int(player.elapsed / 60), int(player.elapsed % 60))" ) > }, > > "tv" : > { "chan_v" : ( "scroller", > "1 1 %d 1 h 2 \"%s\"", > "( self.width, tv.display_name) )" ), > "prog_v" : ( "scroller", > "1 2 %d 2 h 2 \"%s\"", > "( self.width, tv.title )" ) > } > } 314a356 > 326a369,372 > }, > > 2: { > 12 : { "welcome" : [ "clock" ] } 425,426c471,472 < if menu.selected.getattr( 'trackno' ): < title = "%s - %s" % ( menu.selected.getattr( 'trackno' ), title ) --- > #if menu.selected.getattr( 'trackno' ): > # title = "%s - %s" % ( menu.selected.getattr( 'trackno' ), title ) 431,432c477,478 < if player.getattr( 'trackno' ): < title = "%s - %s" % ( player.getattr( 'trackno' ), title ) --- > #if player.getattr( 'trackno' ): > # title = "%s - %s" % ( player.getattr( 'trackno' ), title ) |
- Re: [Freevo-devel] LCD plugin addition... Joakim Berglund
- Re: [Freevo-devel] LCD plugin addition... Gustavo Sverzut Barbieri
