serout


Closed Thread
Results 1 to 2 of 2

Thread: serout

  1. #1
    Join Date
    Feb 2006
    Location
    france
    Posts
    47

    Default serout

    Hello They is my first steps with the peak BASIC, I seek explanations On the instructions canary and serout, I takes as the example of Melanie: Thank you for your assistance
    ' Blink LED slowly to indicate Good Read
    ' --------------------------------------
    Pause 500:Low GreenLED:Pause 500:High GreenLED
    DEBUG REP $00\16,13,10
    FOR COUNTERA=0 to 39
    DEBUG HEX2 MAGDATA[COUNTERA]
    NEXT COUNTERA
    DEBUG 13,10
    endif

    SO con 0 ' Define serial output pin
    N2400 con 4 ' Set serial mode
    B0 var byte
    B1 var byte

    loop:
    For B0 = 40 To 1 Step -1 '
    For B1 = 0 To 40 Step B0 '
    Serout SO,N2400,[#B1," "]
    Next B1
    Serout SO,N2400,[13,10] ' End of line
    Pause 100 ' Delay
    Next B0
    Goto loop

  2. #2
    Join Date
    Feb 2006
    Location
    france
    Posts
    47


    Did you find this post helpful? Yes | No

    Default

    QUOTE=jonas2]Hello They is my first steps with the peak BASIC, I seek explanations On the instructions canary and serout, I takes as the example of Melanie: Thank you for your assistance
    ' Blink LED slowly to indicate Good Read
    ' --------------------------------------
    Pause 500:Low GreenLED:Pause 500:High GreenLED
    DEBUG REP $00\16,13,10
    FOR COUNTERA=0 to 39
    DEBUG HEX2 MAGDATA[COUNTERA]
    NEXT COUNTERA
    DEBUG 13,10
    endif

    SO con 0 ' Define serial output pin
    N2400 con 4 ' Set serial mode
    B0 var byte
    B1 var byte

    l
    For B0 = 40 To 1 '
    '
    Serout SO,N2400,[#B0," "]

    Serout SO,N2400,[13,10] ' End of line
    Pause 100 ' Delay
    Next B0
    Goto loop[/QUOTE]

Similar Threads

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

Members who have read this thread : 1

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