Help with a draft of a robóvia rf


Closed Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    81


    Did you find this post helpful? Yes | No

    Smile ruf-bot

    Dear mackrackit thank you for beautiful lessons bicbasic
    More and pacinencia my ficol very short time.
    I ask for my descupa falhas.Eu I was very interested in the project and much more tificio to me.
    You have a person I very helpful and very eficinte.
    A hug. (That God elumine their paths)

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Cesar35, I took some time to look at this code, truthfully I have not studied PBasic the $99 version, it appears it's syntax is a little different from PBasicPro, it spit it out patoey! Are you using the $99 version or are you using the Pro $250 version ? If using the Pro version the code below will compile. Will it run? Do not know. I compiled for 16F84A.
    Code:
    '****************************************************************
    '*  Name    : RufBot TX.BAS                                      *
    '*  Author  : [select VIEW...EDITOR OPTIONS]                    *
    '*  Notice  : Copyright (c) 2008 [select VIEW...EDITOR OPTIONS] *
    '*          : All Rights Reserved                               *
    '*  Date    : 11/16/08                                          *
    '*  Version : 1.0                                               *
    '*  Notes   :                                                   *
    '*          :                                                   *
    '****************************************************************
    
    include "modedefs.bas"
    
    trisb = 134
     trisa = 133
     portb = 6
     porta = 5
    low 1
    input 0
    input 2
    B0 var byte
    B1 var byte
    start:
    pot 0,50,B0
    
    pot 2,50,B1
    B0 = B0 * 5
    B1 = B1 * 5
    y:
    if B0 < 100 then yf
    if B0 > 150 then yb
    
    x:
    if B1 < 100 then xr
    if B1 > 150 then xl
    serout 1,n9600,[5]
    goto start
    
    yf:
    serout 1,n9600,[2]
    goto start
    
    yb:
    serout 1,n9600,[1]
    goto start
    
    xl:
    serout 1,n9600,[3]
    goto start
    
    xr:
    serout 1,n9600,[4]
    goto start
    
    end
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Control NEXA 230V RF Switch
    By Fredrick in forum Code Examples
    Replies: 3
    Last Post: - 7th December 2009, 00:19
  2. Generic RF Receiver
    By dhouston in forum Code Examples
    Replies: 0
    Last Post: - 8th September 2009, 15:35
  3. Interfacing 16F88 to RF module
    By scomi85 in forum General
    Replies: 2
    Last Post: - 19th February 2009, 13:52
  4. RF Module
    By shahidali55 in forum General
    Replies: 22
    Last Post: - 9th March 2007, 10:00
  5. Interfacting RF Module
    By rastan in forum General
    Replies: 8
    Last Post: - 10th November 2004, 23:27

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