I'm trying to run the code posted by andro on a Netduino Mini which according to MFDeploy has:
.
.
ClrInfo.clrVersion: 4.2.0.0 ClrInfo.clrVendorInfo: Netduino Mini (v4.2.0.1) by Secret Labs LLC ClrInfo.targetFrameworkVersion: 4.2.0.0 SolutionReleaseInfo.solutionVersion: 4.2.0.0 SolutionReleaseInfo.solutionVendorInfo: Netduino Mini (v4.2.0.1) by Secret Labs LLC SoftwareVersion.BuildDate: Sep 19 2012 SoftwareVersion.CompilerVersion: 410894
.
.
I've made one change so that the OneWire port is allocated to pin 5:
OneWire oneWire = new OneWire(new OutputPort(Pins.GPIO_PIN_5, false));
When I try to to run the code it fails at the line:
if (oneWire.TouchReset() > 0)
and the output is:
"A first chance exception of type 'System.NotSupportedException' occurred in MyApp.exe"
which seems to indicate that the TouchReset() method is unavailable. I'm not sure what to do next- hope someone can help.