PDA

View Full Version : DVD and LCD controll



Marsupial
October 23rd, 2002, 10:41 AM
Ok, several people are doing HTPCs onto Girder, here's a handy for LCD usage - I try to put several tipps I gathered in here, if there's more feel free to add!

LCD2 takes care of the displayal, even the scrolling.
DVDspy takes care of gathering info at appropriate time.

things to know
DVDs don't have titles but their discs does.
PowerDVD don't have a "status" event (play/pause/stop)


Ok, here's the tipps. (ok some looks straight forward, but Hey that's what a handy guide is for)

DVD Spy furnish a on insert dics event
get the disc title and display it. that's the only title you'll get for DVDs

most software have a title event.
get the title and display it. for this one you definately should enable scrolling.

PowerDVD XP 4 have some weird foncion for the elapsed time, but all other software have a HH:MM:SS time string from the event.
Most software have a duration event (same format)
you should split a line on your screen and display
HH:MM:SS / HH:MM:SS
as elapsed / duration
This is done in the 2 events. so I suggest you place the payload for elapsed, and " / [pld1]" for the duration.

State/status. Most programs (not powerDVD) have a status event, which you can get a STRING
"PLAY/STOP/PAUSE" for some, "Playing/Stopped/Paused" for ohters.
For a better look, I suggest usage of "custom characters" for the status displayal... you place a simple script that verify the payload and displays the symbol ifever it's the proper string

(under LCD plugin - custom char, separated by spacebar:)

PLAY/Playing:

0b10000
0b11000
0b11100
0b11110
0b11110
0b11100
0b11000
0b10000



PAUSE/Paused:

0b11011
0b11011
0b11011
0b11011
0b11011
0b11011
0b11011
0b11011




STOP/Stopped

0b11111
0b11111
0b11111
0b11111
0b11111
0b11111
0b11111
0b11111


on disc eject, you should erase you elapsed/duration line, your status line, and your title line.

on winamp/powerDVD/Zoomplayer (etc) close program as well: clean the LCD.

same on girder exit: you won't send anymore data anyway, so clean the LCD.

This is for the DVD/DivX/Mpeg/Avi/MP3 events, but there's more...
VOLUME!!!
display a custom char (that you wont erase) at girder open

volume sign

0b00100
0b00010
0b10001
0b01001
0b01001
0b10001
0b00010
0b00100

now when you mute it:

0b10001
0b01010
0b01010
0b00100
0b00100
0b01010
0b01010
0b10001

when you unmute it replace the sign.


when you raise or lower volume: place it in a register, and divide the value by 655 to get percentile value. Display this value followed by "%"

you can also display a clock, for cute little thing, precede it by a clock sign

clock sign

0b00000
0b01110
0b10101
0b10111
0b10001
0b01110
0b00000
0b00000


Weird characters... ifever you have characters not supposrted by your LCD, modify the chartactermap in your register like suggested in LCD2 readme.html file. the more problematic one is the backslash, you should place the slash instead. LCD2 will simply display directly the replacement character for all unapproved ones.

Ifever you have other tips about LCD displayal, don'T be shy to add... I'd like newbies on my LCD!! :)