MarkusLange / OneWireSlave

38 stars 9 forks source link

DS1990A example #2

Open ladikusz opened 10 years ago

ladikusz commented 10 years ago

The DS1990A example cannot be compiled: "DS1990A:13: error: 'class OneWireSlave' has no member named 'setRom'"

MarkusLange commented 10 years ago

Corrected to ds.init(rom); sorry did not changed it in the example

ladikusz commented 10 years ago

Dear Markus, I couldn't get to make it work. It compiles and loads to the arduino, but it seems that nothing happens. I have an Ibutton reader which provides 5V TTL high for 1 sec, low for 1 sec. Do I need any additional configuration or pullup resistors to make it work?

MarkusLange commented 10 years ago

The Original is from this page http://robocraft.ru/blog/arduino/302.html it only supports the DS1990A can you test if this works?

ladikusz commented 10 years ago

Sorry for the late reply. I tried with the original, it's have some data type conflict when the ds.setrom(rom) happens, because it wants unsigned char, but the rom is char. i just changed the type to unsigned char, but it doesn't work. But let's get clear first, it should work with arduino uno (atmega 328) and arduino ide 1.0.5 without any problems? I don't know where should i start debugging.

MarkusLange commented 10 years ago

Yes it should