2023-06-08, 09:23 PM
(2023-06-07, 10:48 PM)Techstyle Wrote: 1-wire pin is declared in the first line of code - pin 25 in my case, which is digital 2:
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
thanks, got it. it is just set differetly than arduino boards. this visual studio does look a much more versatile tool. I got it working, sorta, until I apparently fried my board. Let's see what tomorrow brings. Hopefully a new board.