🤖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?

    PRODUCTS
    stampc3 onewire.h arduino ide
    1
    1
    3.5k
    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
      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
      • First post
        Last post