steven_first_2001
New Member
DO
Hello all! I was hoping that I could get a hand with some programming. I am trying to use a basic stamp 2, bs2 2.5, more specificily, a homework board with rs232. I am trying to interface it with a Amulet touch screen display and I am having some trouble with setting up the serin command. I am trying to do this: SERIN 16, 16468, ["hex values"] ...that is as far as I have gotten. Here is the idea; for class, we are to interface a amulet standalone touch screen to a bs2 via the rs232 port, I have gotten that far.... The bs2 is to have 3 separate songs programmed into it with some kind of loop that runs the songs as subroutines. The display is to have some sort of interface that allows you to push a button with the name of the song and thus uses a UART protocol to communicate with the bs2 to tell it to play that song. I have them "communicating" meaning that I have them set to the proper baud rates using ASCII data. I just need to know how to make a condition that if say the display sends ASCII E0 it will play one song, if it sends F0, it will play another. I guess this is all one big question that is this; how do I write an IF statement conditional to the SERIN command?
Thanks!
lOOP
Hello all! I was hoping that I could get a hand with some programming. I am trying to use a basic stamp 2, bs2 2.5, more specificily, a homework board with rs232. I am trying to interface it with a Amulet touch screen display and I am having some trouble with setting up the serin command. I am trying to do this: SERIN 16, 16468, ["hex values"] ...that is as far as I have gotten. Here is the idea; for class, we are to interface a amulet standalone touch screen to a bs2 via the rs232 port, I have gotten that far.... The bs2 is to have 3 separate songs programmed into it with some kind of loop that runs the songs as subroutines. The display is to have some sort of interface that allows you to push a button with the name of the song and thus uses a UART protocol to communicate with the bs2 to tell it to play that song. I have them "communicating" meaning that I have them set to the proper baud rates using ASCII data. I just need to know how to make a condition that if say the display sends ASCII E0 it will play one song, if it sends F0, it will play another. I guess this is all one big question that is this; how do I write an IF statement conditional to the SERIN command?
Thanks!
lOOP