Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. didier9
    3. Topics
    D
    • Continue chat with didier9
    • Start new chat with didier9
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by didier9

    • D

      Accessing second UART on M5Stamp-PICO
      Arduino • • didier9

      2
      0
      Votes
      2
      Posts
      980
      Views

      Hello @didier9 for UART you should be able to use any available GPIO for RX and TX like this: Serial2.begin(115200, SERIAL_8N1, <RX>, <TX>); for I2C you should be able to use any available GPIO for SDA and SCL like this: Wire.begin(<SDA>, <SCL>); Thanks Felix
    • D

      M5Stamp C3 - I2C interface
      Modules • • didier9

      6
      0
      Votes
      6
      Posts
      2718
      Views

      Hello @davidgs Hmm, I can scan the I2C bus just fine using port A (GPIO0 and GPIO1): Wire.begin(GPIO_NUM_1, GPIO_NUM_0); I2C requires pull-up resistors on both lines. GPIO8 already has a 10k pull-up resistor. Did you add a pull-up resistor to GPIO7 as well? Some I2C slave devices might already have pull-up resistors in place tough. Edit: I've just tried with GPIO7 and GPIO8. The I2C scan works with those two GPIOs for me as well. Thanks Felix