Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By trackerj
#51880 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
User avatar
By trackerj
#52092 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?
User avatar
By fsae99
#52101
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?