🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I2C Scanner working on Cameras Grove Connector.

    Lessons and Guides
    1
    1
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ajb2k3A
      ajb2k3
      last edited by ajb2k3

      I managed to get the i2c scanner to work on the cameras grove connecter but still fighting to find the sensors.

      Add the following to the bottom of Boards.txt in the Arduino>hardware>expressiv>esp32

      ##############################################################

      m5cam.name=M5 Camera

      m5cam.upload.tool=esptool
      m5cam.upload.maximum_size=1310720
      m5cam.upload.maximum_data_size=294912
      m5cam.upload.wait_for_upload_port=true

      m5cam.serial.disableDTR=true
      m5cam.serial.disableRTS=true

      m5cam.build.mcu=esp32
      m5cam.build.core=esp32
      m5cam.build.variant=m5cam
      m5cam.build.board=M5CAM

      m5cam.build.f_cpu=240000000L
      m5cam.build.flash_mode=dio
      m5cam.build.flash_size=4MB
      m5cam.build.boot=dio
      m5cam.build.partitions=default

      m5cam.menu.FlashFreq.80=80MHz
      m5cam.menu.FlashFreq.80.build.flash_freq=80m
      m5cam.menu.FlashFreq.40=40MHz
      m5cam.menu.FlashFreq.40.build.flash_freq=40m

      m5cam.menu.PartitionScheme.default=Default
      m5cam.menu.PartitionScheme.default.build.partitions=default
      m5cam.menu.PartitionScheme.no_ota=No OTA (Large APP)
      m5cam.menu.PartitionScheme.no_ota.build.partitions=no_ota
      m5cam.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
      m5cam.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
      m5cam.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
      m5cam.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080

      m5cam.menu.UploadSpeed.921600=921600
      m5cam.menu.UploadSpeed.921600.upload.speed=921600
      m5cam.menu.UploadSpeed.115200=115200
      m5cam.menu.UploadSpeed.115200.upload.speed=115200
      m5cam.menu.UploadSpeed.256000.windows=256000
      m5cam.menu.UploadSpeed.256000.upload.speed=256000
      m5cam.menu.UploadSpeed.230400.windows.upload.speed=256000
      m5cam.menu.UploadSpeed.230400=230400
      m5cam.menu.UploadSpeed.230400.upload.speed=230400
      m5cam.menu.UploadSpeed.460800.linux=460800
      m5cam.menu.UploadSpeed.460800.macosx=460800
      m5cam.menu.UploadSpeed.460800.upload.speed=460800
      m5cam.menu.UploadSpeed.512000.windows=512000
      m5cam.menu.UploadSpeed.512000.upload.speed=512000

      Clone the folder varients>esp32 and rename to M5Cam

      and change

      static const uint8_t SDA = 21;
      static const uint8_t SCL = 22;

      to

      static const uint8_t SDA = 12;
      static const uint8_t SCL = 13;

      recompile and upload and it should now detect any i2c devices connected to the grove connector.

      UIFlow, so easy an adult can learn it!
      If I don't know it, be patient!
      I've ether not learned it or am too drunk to remember it!
      Author of the WIP UIFlow Handbook!
      M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post