Shop OBEX P1 Docs P2 Docs Learn Events
Sending a word to the Amulet lcd — Parallax Forums

Sending a word to the Amulet lcd

ArchiverArchiver Posts: 46,084
edited 2003-12-05 06:04 in General Discussion
Hello,

I was wonder if someone knows the code structure to send a word to
the Amulet lcd. Lets say you have some word variable in the stamp,
and you want to put that variable in word 3 in the Amulet. How do you
do that?

Below is what I have been messing around with for too long.

Wout VAR Word
Main:

Wout=102
SEROUT 16,84,[noparse][[/noparse]$D6,$03,$00,Wout.NIB3,Wout.NIB2,Wout.NIB1,Wout.NIB0]
Wout=0

GOTO Main

Serout breakdown:
$D6 = Set word command
$03 = Variable # HI nib
$00 = Variable # Lo nib
Wout.NIB3 = Word value MS byte HI nib
Wout.NIB2 = Word value MS byte LO nib
Wout.NIB1 = Word value LS byte HI nib
Wout.NIB0 = Word value LS byte LO nib

Thank you,
John
Sign In or Register to comment.