PBP syntax - numbering variable


Results 1 to 9 of 9

Threaded View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938

    Default PBP syntax - numbering variable

    Hello

    I just saw this piece of code in another thread
    (http://www.picbasic.co.uk/forum/show...hlight=I2CREAD):
    Code:
    for n=0 to 19
    temp1=n+(rec*20)+temp
    I2CREAD SDA,SCL,160,temp1,[text[n]] 
    text[n]=text[n]-48
    next n
    Is it possible to do the same for this code:
    Code:
    LED  var byte[3]
    LED0 var GPIO.0
    LED1 var GPIO.1
    LED2 var GPIO.2
    Counter var byte
    MAIN:           
        for Counter = 0 to 2
            Toggle LED[counter] '<<<< is this possible another way?
            pause 200
        next counter
        goto main
    end
    Is thought this syntax would not be possible in PBP and my Editor won't allow this anyway.

    I must miss something...
    Last edited by flotulopex; - 9th January 2007 at 19:30.
    Roger

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. pbp - asm variable passing
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th May 2009, 08:49
  3. Indexer not indexing...a basic PBP problem??
    By jellis00 in forum General
    Replies: 8
    Last Post: - 24th March 2009, 16:53
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Replies: 2
    Last Post: - 10th July 2006, 01:05

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