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

    RTC unit and core1

    Scheduled Pinned Locked Moved Arduino
    4 Posts 2 Posters 4.3k Views
    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.
    • B Offline
      breadbox
      last edited by

      I am trying to make my new RTC unit RTC8563 to work with my core1 , but arduino IDE always get me a problem message due to the unit RTC .
      Would anybody be able to guide me through some help?
      I am slimpkly tring to compile the example code given by M5stack:
      Unit_RTC_M5Series.ino

      /Users/bboxx/Documents/Arduino/libraries/M5Unit-RTC/src/Unit_RTC.cpp: In member function 'void Unit_RTC::begin(TwoWire*, uint8_t, uint8_t, uint32_t)':
      /Users/bbox/Documents/Arduino/libraries/M5Unit-RTC/src/Unit_RTC.cpp:33:49: error: no matching function for call to 'TwoWire::begin(int, uint8_t&, uint8_t&, uint32_t&)'
      _wire->begin(DEVICE_ADDR, sda, scl, i2c_freq);
      ^
      In file included from /Users/bbox/Documents/Arduino/libraries/M5Unit-RTC/src/Unit_RTC.h:12,
      from /Users/bbox/Documents/Arduino/libraries/M5Unit-RTC/src/Unit_RTC.cpp:1:
      /Users/bbox/Library/Arduino15/packages/m5stack/hardware/esp32/2.0.0/libraries/Wire/src/Wire.h:76:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)'
      bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus
      ^~~~~
      /Users/bbox/Library/Arduino15/packages/m5stack/hardware/esp32/2.0.0/libraries/Wire/src/Wire.h:76:10: note: candidate expects 3 arguments, 4 provided
      Multiple libraries were found for "SD.h"
      Used: /Users/bbox/Library/Arduino15/packages/m5stack/hardware/esp32/2.0.0/libraries/SD
      Not used: /Users/bbox/Library/Arduino15/libraries/SD
      exit status 1

      Compilation error: exit status 1

      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by

        Hello @breadbox

        you most likely need to update the framework-arduinoespressif32 library. When I try to compile with version 1.0.6 I get the same error as you. However if I compile with the latest version 2.0.7 the compilation runs through fine.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          breadbox @felmue
          last edited by

          @felmue
          Waow, that was it.
          Would have never guessed something that crazy.
          Thank you so much

          1 Reply Last reply Reply Quote 0
          • felmueF Offline
            felmue
            last edited by

            Hello @breadbox

            no worries. You're welcome. Glad it works for you now.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post