-->
Page 1 of 2

I2C Scanner example

PostPosted: Mon Aug 01, 2016 4:37 am
by trackerj
Just a quick & handy I2C scanner program that can help you with your I2C devices:


Code: Select all     for address = 1 to 127
       i2c.begin(address)
       stat = i2c.end()

       if stat < 1 then
         ' print stat
          wprint "Found I2C device at address: 0x" & hex(address)
          wprint " - > " & address
          wprint " <br>"
     endif

    next
    wait


Please keep in mind that in ESP Basic you have hardcoded I2C pins yet, SDA -> GPIO0 and SCL -> GPIO2.
Don't forget to add if needed pullup resistors on both lines, 4K7 should be OK.


Original Article with pictures & stuff: ESP Basic I2C scanner example

Re: I2C Scanner example

PostPosted: Mon Aug 01, 2016 5:40 pm
by Mmiscool
Thanks for the very nice example.

Re: I2C Scanner example

PostPosted: Thu Aug 04, 2016 4:56 am
by trackerj
Youtube Video:


And the related original Article: ESP Basic - I2C Bus scanner example

More things related with ESPBasic I2C drivers implementation will follow, where do you think is better to post them? Maybe a Tutorials section?

Re: I2C Scanner example

PostPosted: Thu Aug 04, 2016 7:35 am
by fsae99
trackerj wrote:Youtube Video:


And the related original Article: ESP Basic - I2C Bus scanner example

More things related with ESPBasic I2C drivers implementation will follow, where do you think is better to post them? Maybe a Tutorials section?


What is the model name of the esp8266 board are you using in this video?