New to PICBASIC Pro and have simple question


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    42


    Did you find this post helpful? Yes | No

    Default It works.

    I knew it was simple. It works fine now. Guess I should have tried setting it for digital before posting..

    Anyone know of a good thread or link to a site that has a good explanation of the "button" command, how it works, and examples?

    I would really like to use this command instead of using high and low. That way I don't have to put resistors to a ground for every input pin in my project.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    [QUOTE=plyrathrt;46409]

    Anyone know of a good thread or link to a site that has a good explanation of the "button" command, how it works, and examples?

    > plenty of downloads Here !!! everything is good to learn as it's PbP fully compatible !!! :

    http://www.parallax.com/Education/Pr...5/Default.aspx

    I would really like to use this command instead of using high and low. That way I don't have to put resistors to a ground for every input pin in my project

    > High and low apply to Outputs ... no link to "Button" function !!!

    You'll always have to use pull up/down resistors for inputs whatever the way you read them .... yesss, that's it !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Nov 2007
    Posts
    42


    Did you find this post helpful? Yes | No

    Default 1 more question

    I didn't want to start another thread for this question.

    Is there any way to take a signal coming in on one pin and output that same signal on another?

    I don't know if the signal is digital or analog so it's not like I can just set it to high, low, or any puls commands.

    Any idea how this can be done?

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi plyrathrt. Yes. There is a way for digital signals. You can change the ports to your liking.

    LOOP:
    INPUT PORTB.0
    OUTPUT PORTB.1
    LET PORTB.1 = PORTB.0
    GOTO LOOP

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