I have a working sketch on my new Boron, and was interested in adding a OneWire sensor. I used the library manager to add the OneWire library to my project, and it appeared to work (it added the library to the project and the #include at the beginning of the file). But now when I compile, I get:
lib/OneWire/OneWire.h:99:21: ‘STM32_Pin_Info {aka struct NRF5x_Pin_Info}’ has no member named ‘gpio_peripheral’
I had the same error trying to use the OneWire library an Adafruit BNO055 library that I had previously had working on Photon. Now with my Argon, it is giving this error:
lib/OneWire/OneWire.h:99:21: 'STM32_Pin_Info {aka struct NRF5x_Pin_Info}' has no member named 'gpio_peripheral'
lib/OneWire/OneWire.h:103:21: 'STM32_Pin_Info {aka struct NRF5x_Pin_Info}' has no member named 'gpio_peripheral'
I confirmed that the Onewire library is version 2.0.3, and I re-added it using the Web IDE to the project. Has anyone else had similar errors with this library on the Argon?
To share the revision, I had to make the library public, so it is now available. I just wanted to acknowledge that it wasn’t my work to port the library over - thanks to @nrobinson2000 for the original port!
Before posting, I confirmed that this sample code does still work on a Photon - my Photon was able to print out successfully to the serial monitor with live sensor data. I tried again with the Argon, and it gave me the same error with the OneWire library that I included in my previous message.
That was the problem - I appreciate you spotting it. I’ve updated and published the BNO055 library to use OneWire 2.0.3, and that seems to have made it work on my Argon now.
Thanks to everyone who helped, and my apologies for hijacking this thread a bit. It looks like the OneWire 2.0.3 library should be working fine on my mesh devices.
Thanks for using my port. I compressed the library, so you shouldn’t need to include Adafruit_Sensor as I already included the class in the particle-BNO055.h header file.
I am trying to get the Adafruit BNO055 working with my Boron, and its making me feel like a moron…Has anyone been able to get it working with the Boron? Sorry to resurrect an old thread but felt like the place to ask.