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

    M5Stamp C3U × /OneWire.h error. Has anyone run into the same error?

    Scheduled Pinned Locked Moved PRODUCTS
    stampc3onewire.harduino ide
    1 Posts 1 Posters 4.6k 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.
    • O Offline
      Osakana3
      last edited by

      I included the Onewire.h library to use the DS18B20 temperature sensor in C3U, but I get the following error message "Error compiling for board STAMP-C3.

      C:\Users******\Documents\Arduino\libraries\OneWire\util/OneWire_direct_gpio.h:131:25: error: no match for 'operator>>' (operand types are 'volatile gpio_dev_s::<unnamed union>' and 'uint32_t' {aka 'long unsigned int'})
      return (GPIO.in >> pin) & 0x1;

      When the same code was compiled into M5Stack Basic, the compilation was able to run without error.
      Does anyone know the solution?

      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