Serout question


Closed Thread
Results 1 to 4 of 4

Thread: Serout question

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    You can easily store a single character (comma or decimal point) in a byte variable.

    Code:
    IF type = rpm THEN
        delimiter = ","
        value = rpmvalue
    ELSE
        delimiter = "."
        value = timevalue
    ENDIF
    
    DEBUG  DEC (value/1000), delimiter, DEC3 value
    Charles Leo
    microEngineering Labs, Inc.
    http://melabs.com

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Thanks that makes it alot simpilier.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 21:58
  2. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 17:46
  3. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 18:11
  4. Keypad unlock (as in garage door possibly)
    By Fred in forum Code Examples
    Replies: 5
    Last Post: - 2nd April 2006, 05:26
  5. Serout Question
    By Dick Ivers in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd April 2005, 03:21

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts