2023-06-07, 10:48 PM
1-wire pin is declared in the first line of code - pin 25 in my case, which is digital 2:
as for the INA219, that is a I2C device and therefore is called for in:
there is default pins for this so you may be able to omit the pin numbers
Code:
/// 1-Wire Temp Sensors - Exhaust Temp Sensors ///
DallasTemperatureSensors* dts = new DallasTemperatureSensors(25); //digital 2
// Oil temp (fasten to oil P sensor) - /propulsion/engine/oilTemperature
auto* oil_temp =
new OneWireTemperature(dts, 1000, "/Oil Temperature/oneWire");
oil_temp->connect_to(new Linear(1.0, 0.0, "/Oil Temperature/linear"))
->connect_to(
new SKOutputFloat("propulsion.engine.oilTemperature",
"/Oil Temperature/sk_path"));
as for the INA219, that is a I2C device and therefore is called for in:
Code:
Wire.begin(21,22); // join i2c bus (address optional for master)
there is default pins for this so you may be able to omit the pin numbers