SX/B IR Remote
Rsadeika
Posts: 3,837
My projects success depends on a working implementation of an IR remote control. So, I decided to try to convert Jon Williams 'Control From the Couch' program so it can function in the SX/B environment. Right off the bat, I can see it will be a pretty demanding task. Since their are other people that are starting to convert from the BS2 to the SXxx platform, I will try to make my quetions as general as possible, so everybody can get some use out of this thread. Their will be a lot of questions that will have to be resolved.
First up - Variables:
Original PBASIC code
irStart····VAR Word
irBit······· VAR irStart
numDigits VAR Nib
Any ideas as to how I can implement Word, and Nib in SX/B? As for the 'irBit VAR irStart' I tried 'irBit VAR @irStart', that did not work.
·
First up - Variables:
Original PBASIC code
irStart····VAR Word
irBit······· VAR irStart
numDigits VAR Nib
Any ideas as to how I can implement Word, and Nib in SX/B? As for the 'irBit VAR irStart' I tried 'irBit VAR @irStart', that did not work.
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
I got lost right after "SX/B does not directly translate from PBASIC 2 -- ...". Since this idea (Receive and decode Sony IR command) is the key to the whole program, a few lines of example code would be appreciated. Speciffically addressing the "... resolution of PULSIN ...", and "... Start bit will fit into a byte variable ...". I think that once I have a code start point I should be able to create the loops, and anything else that is necessary.
Since you made no mention of the variables "Word", and "Nib", can I assume that those will be showing up in the next version of SX/B?
Also one other point, in your original article, you write "Generic Sony IR remote codes (not a complete list)". Is their a location where I can get the complete list?
The best thing to do is read through the current help file. SX/B is very new (about five months old) and there aren't yet as many application examples as there are for BASIC Stamps (BS1 introduced in 1993).
I'm currently swamped with updating the SX/B help file for version 1.2 so that we can get it finalized and released. Once I'm done with that, I will have time to go through and create a Sony IR example. I fear "a few lines of example" code at this point would create more questions than they answer.· Work through the help file examples and projects so that you can get your mind around SX/B; then tackle the IR project.
Search the Internet for Sony device codes -- there are many sites that list them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA