MO-2041 WB Backlight / MO-Perl
Posted: Wed Dec 17, 2003 6:37 am
Hello,
I've been messing around with my display for a while now and have some working code for an mp3 player using anders MO-Perl module which im sure some of you are fimilar with.
The thing is when i turn on the PC and the LCD lights up, the background is bright blue with a bright grey blinking cursor.. but as soon as I initalize the display and write some text to it, the background turns much darker and the so does the text - it just doesnt look as cool.
I read the PDF file from the manuals page on matrixorbital.com and the best answer i can come up with is that my problem is a brightness setting? Now according to the PDF document the commands for adjusting the brightness are: 254 153 [brightness]. So i set about adding a new sub to the Display.pm module but it doesnt quite work(the sub IS being called btw)... heres what I've done to test it:
Unfortunatly when called the output is just as dull as normal but with "53" at position 1,1 ..
I'm pretty sure that im sending the commands to the display incorrectly so if anyone can guide me in the right direction I can add some more usfull features not yet implemented in the MO-Perl module..
While I have your attention
Im interested in turning off the auto line wrap but I cant get this to work either. Just to make sure It does what i think it does: If i turn it off and send a string of say 24 chars only the first 20 will be shown and the last 4 should be cut off and ignored is that correct? I've been using the str() function to do some chopping but it's making adding songs from my playlist quite hard and messy...
Any reply or example code or even reading this is aprechiated =)
Thanks.
I've been messing around with my display for a while now and have some working code for an mp3 player using anders MO-Perl module which im sure some of you are fimilar with.
The thing is when i turn on the PC and the LCD lights up, the background is bright blue with a bright grey blinking cursor.. but as soon as I initalize the display and write some text to it, the background turns much darker and the so does the text - it just doesnt look as cool.
I read the PDF file from the manuals page on matrixorbital.com and the best answer i can come up with is that my problem is a brightness setting? Now according to the PDF document the commands for adjusting the brightness are: 254 153 [brightness]. So i set about adding a new sub to the Display.pm module but it doesnt quite work(the sub IS being called btw)... heres what I've done to test it:
Code: Select all
sub display_brightness
{
$brightness = sprintf "%c153", 0xfe, 255;
print DISPLAY "$brightness";
}
I'm pretty sure that im sending the commands to the display incorrectly so if anyone can guide me in the right direction I can add some more usfull features not yet implemented in the MO-Perl module..
While I have your attention

Any reply or example code or even reading this is aprechiated =)
Thanks.