Still Experimenting


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by tazntex View Post
    Is there any way when I send my data to the receiver I need it recognize that I am still pressing the switch and hold an output high but once the switch is released the output is to go low? Here is my receiver code:
    Think yourself thru the code...
    Code:
    If I'm still receiving a code that a switch is pressed, hold the output high and check again
    If I'm not receiving the code mentioned above, put the output low and check again
    Simple as that...

  2. #2

    Default

    Well, I'm about to pull all the hair out of my head. I've tried several things including something like this:
    rly1:
    if mydata=%00000000 then high 7
    pause 250
    IF mydata<>%00000000 then low 7
    goto loop
    Still no go and the next loop:
    rly2:
    HIGH 6
    pause 250
    Low 6
    goto loop
    of course while I pressing the button down on the transmitter rly2 just goes on/off,etc.
    I've been going through the compiler manual again trying to figure out what I am missing. Any more tips? Thanks

Similar Threads

  1. Experimenting with the PicBasic Pro Compiler
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 17th May 2016, 19:17
  2. Replies: 7
    Last Post: - 17th May 2016, 19:03
  3. Replies: 2
    Last Post: - 8th March 2009, 22:32
  4. UPS serial protocol
    By sougata in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th November 2006, 02:49
  5. Experimenting With Pic Basic Pro Question
    By jabahunter in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 28th May 2005, 08:16

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