Shop OBEX P1 Docs P2 Docs Learn Events
Sending a CR or Clearscreen character with "FullDuplexSerial"?????? — Parallax Forums

Sending a CR or Clearscreen character with "FullDuplexSerial"??????

laser-vectorlaser-vector Posts: 118
edited 2010-08-01 00:29 in Propeller 1
i seem to be having a little trouble sending a CR or CLS character to my serial out. everything else works ok...


CON

  _clkmode = xtal1 + pll16x
  _xinfreq = 5_000_000 

 Delay = 1000

OBJ

  ser : "FullDuplexSerial"

PUB main

  ser.start(30, 31, 0, 9600)
   repeat
    waitcnt(clkfreq / 1000 * Delay+ cnt)
    ser.str(string("hello"))
    waitcnt(clkfreq / 1000 * Delay + cnt)
    ser.str($13)      {im not sure if im doing this right, but this is where id like to send the CR character}


Comments

  • kuronekokuroneko Posts: 3,623
    edited 2010-08-01 00:10
    ser.tx(13)
    
  • laser-vectorlaser-vector Posts: 118
    edited 2010-08-01 00:12
    OH ok i see how that works now!! that was easy, thanks!!

    BTW do you know what decimal is for CLS??
  • kuronekokuroneko Posts: 3,623
    edited 2010-08-01 00:13
    laser-vector said...
    do you know what decimal is for CLS??
    That depends on your terminal software. The Parallax Serial Terminal accepts 0 and 16 (if enabled).
  • laser-vectorlaser-vector Posts: 118
    edited 2010-08-01 00:18
    Im actually using a parallax 4x20 Backlight LCD model: QY-2004A

    ill look into it and see if it accepts CLS characters
  • kuronekokuroneko Posts: 3,623
    edited 2010-08-01 00:23
    laser-vector said...
    Im actually using a parallax 4x20 Backlight LCD model: QY-2004A
    Then I assume FF (formfeed, 12) should do the trick.
  • laser-vectorlaser-vector Posts: 118
    edited 2010-08-01 00:29
    yep, just read the spec sheet on the lcd and 12 did the trick! thanks for the insight!!
Sign In or Register to comment.