Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/18/01 20:43
Read: times


 
#15837 - RE: scrolling text on lcd - simulator
Hi,

To script the display you type the script functions into the "Script Box", and press the "Run script" button.
These are intended to use the simulators without using the buttons, and make it easier to experiment with.
Here are the functions vailable:
instr(instructionCode) // sends instruction
data(caharacterCode) // sends data
mcl(x_times) // move cusror left
mcr(x_times) // move cursor right
sdl(x_times) // shift display left
sdr(x_times) // shift display right
DDRadrs(address) // set DDRAM address
CGRadrs(address) // set CGRAM address
putstr('string') // print string

Here is a sample script:
instr(15) // open display with block cursor on
instr(128) // set DDRAM address to 0
data(0x31) // send data for character '1'
data(0x32) // send data for character '2'
data(0x33) // send data for character '3'

You can also use these with JavaScript control flow expressions like this:
instr(15) // open display with block cursor on
instr(128) // set DDRAM address to 0
for(var i=0x41;i<0x48; i++){
data(i) // write data
mcr() //move cursor right
}

I hope this answers your question.
BTW that is not a Java applet. It is a %100 JavaScript application.

Regards,

Dincer Aydin


List of 7 messages in thread
TopicAuthorDate
scrolling text on lcd            01/01/70 00:00      
RE: scrolling text on lcd            01/01/70 00:00      
RE: scrolling text on lcd            01/01/70 00:00      
RE: scrolling text on lcd - simulator!            01/01/70 00:00      
RE: scrolling text on lcd - simulator            01/01/70 00:00      
RE: scrolling text on lcd - simulator            01/01/70 00:00      
RE: scrolling text on lcd            01/01/70 00:00      

Back to Subject List