Shop OBEX P1 Docs P2 Docs Learn Events
SERIN/OUT help w/ PropBasic — Parallax Forums

SERIN/OUT help w/ PropBasic

$WMc%$WMc% Posts: 1,884
edited 2010-06-16 02:56 in Propeller 1
Hello All:

·I'm trying to nail down SERIN/OUT with PropBasic. I think I have the SEROUT Pin, Baudmode, Part down pat. But the [noparse][[/noparse] value | Srting | Label1] is still confusing to me. I can send " " quoted text, But if I try to send a VAR or CON it will not compile.

What am I missing?

In the end I would like to read in a shift/in reg. and send the data out to a serial device on a Prop pin.

So I need to master the serial function with PropBasic.

I have attched the PropCode.

I have done all of this with a BS2. The Prop is another learning curve.



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


want speed?·want·to use the Propeller?·want to stay with BASIC___www.propbasic.com___


You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.

Comments

  • JonnyMacJonnyMac Posts: 9,208
    edited 2010-06-16 02:56
    Did I not give you my library that handles all of this stuff pretty cleanly? If has $IFUSED clauses in it so that you don't use more code space than required. Every time you use SEROUT in your program you use code space -- you don't have to if you encapsulate "big" elements of PropBASIC in subroutines and functions.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon McPhalen
    Hollywood, CA
Sign In or Register to comment.