Hello! Been a fly on the wall in your forums for a month or so now. Very nice, helpful crowd.
I bought an AH3-R a little while ago and have been playing with it ever since. Everything is working out of the box and doing great. I’ve got it walking around with the ps2 controller. Starting to move on.
I’m trying to get a better undertanding of how the ps2 controller MBasic code works. I’ve read the wiki sites and think i have a pretty good undertanding. My question is how serout (serial out) works with communicating to the ssc32.
here’s the first serout sent to ssc32 in “attack mode” code
serout SSC32,I8N1_38400,"#",MRHH,MRHH2,"P1800#",MRHV,MRHV2,"P1700#",MRK,MRK2,"P1700#", |
MLHH,MLHH2,"P1200#",MLHV,MLHV2,"P1300#",MLK,MLK2,"P1300T288",13]
What I understand:
This sends an asycronous serial communication to SSC32 (ssc32 is the predefined friendly name for pin8) at a boud of 38400.
What I don’t understand:
Why do we send “I8N1_38400” instead of just “38400”?
What do the “#” signs do, and why we need them?
What’s the “13” i’ve seen at the end of every ssc32 communicationn code do? Is it like a termination or something?
Sorry for the noobishness of these questions. I’m sure this has been discussed before, but I couldn’t find anything in search.
Thanks!
Perl