Shop OBEX P1 Docs P2 Docs Learn Events
Parallax Serial Terminal - help — Parallax Forums

Parallax Serial Terminal - help

RobertWRobertW Posts: 66
edited 2014-02-22 20:40 in Propeller 1
Hello,

I am using the Parallax Serial Terminal to display some values and would like to create some borders and/or for a simple idea, think of dividing the display into (4) quadrants, or areas. Looking at the character chart in the Propeller Tool, I see a vertical line (DEC: 145 HEX: $91), horizontal line (DEC: 144 HEX: $90), and some ‘corner pieces’(DEC: 156 HEX: $9C to DEC: 159 HEX: $9F), etc. Is there a way I can use these items to build a border on the screen? I am using the Parallax Serial Terminal object if that helps or hurts. Thank you for your help.

Thanks,
Rob

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2014-02-22 19:39
    You can use those characters to build the "frame" of your display, and then make use of X and Y positioning to add content to your frame.


    Take a look at the HM55B Propeller Compass DEMO in the OBEX. Specifically the Serial version on how to set a specific position...
    http://obex.parallax.com/object/273


    Here is a code snip that works the same as the BS2 to set a specific cursor position in the Serial Debug window...
    PUB CRSRXY(X,Y)                                         'Equal to the BS2 DEBUG command CRSRXY
          ser.tx(2)
          ser.tx(X)
          ser.tx(Y)
    
  • RobertWRobertW Posts: 66
    edited 2014-02-22 19:51
    Hi Beau,
    Thank you for your help. I understand needing to use the X-Y commands to fill in the screen. For example:

    PST.Position(20,8)
    PST.str(String("LED On"))

    I am having trouble getting the characters themselves to display. Do I need to somehow use the decimal value, the hex value, neither, etc?

    Thanks,
    Rob
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2014-02-22 20:36
    Hmmm.... your right.... I thought in the "Pref's" of the Terminal you could change the font to "Parallax" font. Seems like I have used these characters before in a Debug Terminal. I will have to dig a little further, maybe an older version of the Debug terminal.
  • RobertWRobertW Posts: 66
    edited 2014-02-22 20:40
    Ok. Thank you. If I can not use the Parallax font, I can always go back and use the basic keyboard symbols ( |, _, -, =, etc.)
    -Rob
Sign In or Register to comment.