So, I had DallasTemperature, OneWire and OneWireHub installed. I was unable to uninstall any of them using the UI, so I decided to nuke the Arduino install completely and try again - better safe than sorry! I also forgot that I had it installed as a "windows app", so this time around I reinstalled using the customary exe installer.
OneWire appears to come pre-installed - I updated it to version 2.3.3. Using PeterF's latest code and a 4.7kΩ pullup in VCC, with "#define DS_PIN 8," and my DQ/data connection in P8 I get (in chronological order):
DS18x20_Temperature sketch started null
oak/device/stdout DS GPIO pin: 8 No more addresses.
oak/device/stdout No more addresses. No more addresses. No more addresses. No more addresses.
oak/device/stdout No more addresses. Stopping address searchTrying "DS_PIN 2" while checking it on P2 I get the same result.
Per my "brute force" attempts I know that setting "DS_PIN 0" should give me a reading on P2...lo and behold:
oak/device/stdout No more addresses.
oak/device/stdout ROM = 28 F7 2F 10 7 0 0 3C Chip = DS18B20
oak/device/stdout DS GPIO pin: 0 Data = 1 76 1 4B 46 7F FF A 10 79 CRC=79 Temperature = 23.37 Celsius, 74.07 Fahrenheit I then decided to try "DS_PIN 12" and reading it on P8. This would give credence to the "DS_PIN is actually GPIO pin" idea and I haven't tried setting that variable higher than 10 before. This works as well.
I then re-checked the whole Oak Pin <-> ESP GPIO table on the
Pinout Wiki page, just reading each DS_PIN value for GPIO on the expected Oak pin. It corresponds almost completely, other than PIN 6 which I can't check on bootup, pin 10 (which didn't read with DS_PIN 16) and pin 11 pin 10 (which didn't read with DS_PIN 17). I am guessing those last two don't work without PWM
So why am I using GIPO here on my end? Do I need to update firmware?