Beginner help!


Results 1 to 15 of 15

Thread: Beginner help!

Threaded View

  1. #10
    Join Date
    Apr 2012
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: Beginner help!

    TRISIO = 1000

    SIG1 = GPIO.3
    OUTPUT1 = GPIO.1
    OUTPUT2 = GPIO.2

    LOOP:

    OUTPUT1 = SIG1
    OUTPUT2= 0
    PAUSE 200

    OUTPUT1 = 0
    OUTPUT2 = SIG1
    PAUSE 200

    GOTO LOOP






    Would this work? Im trying to alternate sending sig1 (a negative ground connection from another electronic device) back and fourth between the other two pins. Is there any kind of format I need to do while coding, for ex. does there need to be a space between OUTPUT1 = GPIO.1 or Can i Just do OUTPUT1=GPIO.1 and also can i even name the outputs and inputs to whatever I want as long explain it at the start of the code as I did? Also ive been trying to get started with the basics, But I just havent got a chance to pick up some leds.
    Last edited by Recognize; - 25th April 2012 at 18:18.

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