Hi roddyp,
I really appreciate your intention to help, but I have to kindly ask you to please, stop with this thing of "quick fixes", for some important reasons, that I start to explain:
- The worst thing we can do to the majority of the WeatherDuino Pro2 users is proposing them to do changes on the code. They expect, and I do my best to correspond to their expectances, that the system works without the need of programming knowledge, by just editing some simple user configuration option. I never published a "quick fix" for anything, even to correct an eventual bug, instead I always asked to users to wait for an updated version.
- Suddenly, it seems that nothing works, and everything is wrong. This is introducing a negative noise, that doesn't correspond to truth. This all started because of Arduino 1.8.0. I did my best to as quick as possible release a version compatible with it, but even if I haven't did it, what's is the problem in using Arduino IDE 1.7.7? Or by other side, what is the benefit of using IDE 1.8.x so quickly?
Now lets talk about the OneWire library.
Quote:Looks like this is problems caused by the Weatherduino modified Onewire library clashing with what I think is the 'official' one. https://github.com/PaulStoffregen/OneWire
Can the 'official' onewire library now be used rather than the modified one? You'd need to modify the object constructor to this, I think.
I wrote countless times, to only try to compile the code with the supplied libraries. Surely I have some reasons to say it.
Quote:The two libraries are very different, so I think you'll need to uninstall the 'official' OneWire lib and just use the Weatherduino-specific one. And revert the change with '18'!
There aren't a Weatherduino-specific OneWire library, as also there aren't "official" libraries. There are just libraries, some better (or more efficient) than others.
Quote:You'll need to remove the folder ' /Users/Mark/Documents/Arduino/libraries/OneWire' - But this will mean that any sketches that need the regular one-wire library won't work.
But this will mean that any sketches that need the regular one-wire library won't work.
Are you really sure about this affirmation?
One or two days ago, I wrote on this
post:
Quote:...the few changes I did in some of the libraries, never have changed the general functionality of the library
Despite I'm not a professional programmer, there are some rules that I do my best to follow. The OneWire library used with the WeatherDuino Pro2 is from
cybergibbons. It don't have any credits because the original also don't have. The original name of this library is also OneWire, and for a good reason!
In this library, I just have added the CRC16 code, because some sensors used with the WeatherDuino Pro2 need it.
Now the important part:
A OneWire library using the DS2482 I2C->1-Wire bridge. Released under GPL.
This is designed to use Dallas DS18B20 temperature sensors connected to a DS2482 I2C->1-Wire bridge as part of a temperature monitoring system.
The code heavily borrows from two sources:
•Paeaetech's DS2482 library (
https://github.com/paeaetech/paeae/tree/...ies/ds2482) - the bulk of the functionality if from here, slighty changed.
•OneWire library (
http://www.pjrc.com/teensy/td_libs_OneWire.html) - the CRC code is from here,
along with all method names so we can use new library in place of this.
Please don't misunderstand my words, and please understand that I had to give these explanations publicly, because the questions were also put publicly, otherwise I would have preferred to respond privately.
Believe me, I work really hard on this, trying to give users the easier experience possible.
Kind regards
Werk_AG