View Single Post
Old 2007-12-07, 19:44   #1 (permalink)
3dcoder
Portal Member
 
Join Date: Apr 2007
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts

Country:


Lightbulb Support for super simple RS232 display

Hi all LCD-developers!


I have a very simple RS232 display made by Velleman. I can code somethings that sends signals to it, but I have no clue how to do that with Media Portal. If someone is interested in this issue, it would be truly great!

The display works as following: The program sends ASCII characters to the COM-port with 120 ms or more between each letter. Display has 16 characters and they scroll automatically from right to left

To show simple word, like "Music", the program can add 16-5 = 11 characters after the text, so that the old text won't get displayed. And in case of a longer name, like album name, display takes care of the scrolling. Just sending of characters - fast and easy.

This is some Basic-style pseudo-code of a loop that could be used to send a string to the display:


lenght = StringLenght(message)
pos = 0

repeat(lenght) {

char = StringCharAt(pos)
RS232send(char,pos,com1)
pos+=1
}


Thank you for your interest!
3dcoder is offline   Reply With Quote