My first post searching help


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: My first post searching help

    hserout ["Address scannining in progress..."]


    for I = $08 to $77 step 2
    I2CWrite SDA,SCL,I2C_Dev,[DC] ;Address scannining in progress.. yet you never change the address,, DC is used but never initialised
    If Flag_Ack = true then say = I ; how would Flag_Ack ever change
    pause 2000
    Led = !Led
    Next I


    hserout ["Address found = ",dec say]


    ps
    internal pbp regbit FLAGS.5 may act like you want Flag_Ack to , but its undocumented and may not be totally reliable





    try this


    Code:
    dc=0
    hserout ["Address scannining in progress..."]
    for I = $02 to $fe step 2
        I2CWrite SDA,I,[DC],nak  
        hserout ["Address found = ",hex2 I ,13,10]
        nak:
    Next I
    Last edited by richard; - 24th June 2016 at 12:47.
    Warning I'm not a teacher

Similar Threads

  1. Searching within array's
    By timmers in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 10th May 2012, 09:21
  2. Fix for preview post -> real post.
    By HenrikOlsson in forum Forum Requests
    Replies: 8
    Last Post: - 26th August 2011, 17:34
  3. Searching for a post
    By Nicmus in forum General
    Replies: 5
    Last Post: - 28th October 2008, 23:29
  4. searching for three letter words...
    By paxmowa in forum Forum Requests
    Replies: 4
    Last Post: - 12th September 2007, 17:06
  5. HSERIN command - Still searching for answers
    By electronicsuk in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 26th December 2003, 09:28

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