Shop OBEX P1 Docs P2 Docs Learn Events
Using 2 or more FullDuplexSerial — Parallax Forums

Using 2 or more FullDuplexSerial

Kevin L.Kevin L. Posts: 10
edited 2006-07-21 13:27 in Propeller 1
If I want to use two or more serial ports, can I use the FullduplexSerial.spin Object as-is? Or do·I need to·modify it so it uses different memory space for each serial object?

Thanks

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-07-21 13:27
    If you declare two objects (any object), they will get a different memory space. so ...
    OBJ
      ser1 : "FullDuplexSerial"
      ser2 : "FullDuplexSerial"
    
    


    This gets you two independent serial ports, but only one copy of the code.
Sign In or Register to comment.