-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rp2040 earlephilhower library compatibility #123
Comments
The https://github.com/pstolarz/OneWireNg library does support RP2040 platforms, you may want to try that instead. |
Yes! your right just 25 days written. I try it and feedback the result.
Problem was only to use non mbedrp2040 for this alternative onewire library. cannot use arduino.h for pin definitions. never worked except embed
Cool to transmit information, that open a way to use onewire on pico picoz and pico w with earlephilhower library !! ....;)
All with the great Arduino IDE and a large library easy to use. It's nice for each one who dont work on python or c++..
Thanks a lot for your work, am not really developper just using different library and test..
this is the modified OneWire_direct_gpio.h and for me it's really working dont know why, no problem.
Sure, correct with a good library it' really better.
you can take off my issue off and specify this location library for pico lowers...;) have a good day!
This is only what I changed. no error and good dallas temperature why any gpio on the rp2040.
correction is only if no board end of is detected by default. Arduino IDE 1.8.19 with earlephilhower library
include arduino.h.
here it's the really short working sketch.
joy.
… Le 9 déc. 2022 à 22:19, Brent Rubell ***@***.***> a écrit :
The https://github.com/pstolarz/OneWireNg <https://github.com/pstolarz/OneWireNg> library does support RP2040 platforms, you may want to try that instead.
—
Reply to this email directly, view it on GitHub <#123 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG5Z5IAKFNONQS7UFMXJX5LWMOO7RANCNFSM6AAAAAASVRMGFA>.
You are receiving this because you were mentioned.
|
So nice. tested . really cool to use on any rp2040! Good job, nice beerware! have a fresh one! top guy!
joy
… Le 9 déc. 2022 à 22:19, Brent Rubell ***@***.***> a écrit :
The https://github.com/pstolarz/OneWireNg <https://github.com/pstolarz/OneWireNg> library does support RP2040 platforms, you may want to try that instead.
—
Reply to this email directly, view it on GitHub <#123 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AG5Z5IAKFNONQS7UFMXJX5LWMOO7RANCNFSM6AAAAAASVRMGFA>.
You are receiving this because you were mentioned.
|
Thanks for this information. I'm almost a novice so can you tell me once I open and edit the Onewire_direct_gpio.h file, How I then call it in a sketch. There is no install option listed for this library in Arduino 2.0.3. Thanks |
I have tried the above suggestion, but It is failing to compile.
I have searched the folder it mentioned and any other folders where libraries may be stored, but there are no duplicates of the libraries. |
Sure you have mutiple OneWire libraries (Multiple libraries were found for "OneWire.h") so it's not the good one. uninstall all OneWire libraries firth included AdaFruit_sensor may be it have. then install PaulStoffregen OneWire library.(https://github.com/PaulStoffregen) and verify this is the only one. Dont modify anything (bug has been corrected). |
I have manually searched for the OneWire library's duplicate. I haven't found it anywhere(Including in any of adafruit/other third party libraries). But Adafruit library is needed for a lot of my codes. |
Click File > Preferences and turn on verbose output during compilation. This will cause Arduino IDE to show the full pathnames of all libraries used. It will also show all the compiler commands (a lot of text) which have the full pathnames to files used. |
Description
RP2040 (Raspberry pi pico) earlephilhower library) compatibility problem:
warning "OneWire. Fallback mode. Using API calls for pinMode,digitalRead and digitalWrite. Operation of this library is not guaranteed on this architecture.
Right!. No way to run. Don't wire any gpio. Run only on mbedRP2040 boards.
Steps Fix the Problem
open OneWire_direct_gpio.h.
just write line 445 at place of #define PIN_TO_BASEREG(pin) (0)
by #define PIN_TO_BASEREG(pin) (pin)
comment boths warning (line 442 and 455 (//#warning ("OneWire. Fallback mode...
it's work like a charm on any gpio of the Pico, Pico-Zero, and Pico W
with earlephilhower library on Arduino IDE 1.8.19...;)
Hardware & Software
Raspberry pi pico, W, and Zero.
Arduino IDE version 1.8.19 with earlephilhower library.
Version 2.6.3 https://github.com/earlephilhower/arduino-pico
Operating system
MacOS Sierra
use at the top #include <Arduino.h> and #include <DallasTemperature.h> for the sketch.
you can use any library from Arduino, it run with..
The text was updated successfully, but these errors were encountered: