@@ -2221,6 +2221,38 @@ Variable* y560Temp =
2221
2221
#endif
2222
2222
2223
2223
2224
+ #if defined BUILD_SENSOR_YOSEMITECH_Y700
2225
+ // ==========================================================================
2226
+ // Yosemitech Y700 Pressure Sensor
2227
+ // ==========================================================================
2228
+ /* * Start [yosemitech_y700] */
2229
+ #include < sensors/YosemitechY700.h>
2230
+
2231
+ // NOTE: Extra hardware and software serial ports are created in the "Settings
2232
+ // for Additional Serial Ports" section
2233
+
2234
+ // NOTE: Use -1 for any pins that don't apply or aren't being used.
2235
+ byte y700ModbusAddress = 0x70 ; // The modbus address of the Y700
2236
+ const int8_t y700AdapterPower = sensorPowerPin; // RS485 adapter power pin
2237
+ const int8_t y700SensorPower = A3; // Sensor power pin
2238
+ const int8_t y700EnablePin = -1 ; // Adapter RE/DE pin
2239
+ const uint8_t y700NumberReadings = 5 ;
2240
+ // The manufacturer recommends averaging 10 readings, but we take 5 to minimize
2241
+ // power consumption
2242
+
2243
+ // Create a Y700 pressure sensor object
2244
+ YosemitechY700 y700 (y700ModbusAddress, modbusSerial, y700AdapterPower,
2245
+ y700SensorPower, y700EnablePin, y700NumberReadings);
2246
+
2247
+ // Create pressure and temperature variable pointers for the Y700
2248
+ Variable* y700Pres =
2249
+ new YosemitechY700_Pressure(&y700, " 12345678-abcd-1234-ef00-1234567890ab" );
2250
+ Variable* y700Temp =
2251
+ new YosemitechY700_Temp(&y700, " 12345678-abcd-1234-ef00-1234567890ab" );
2252
+ /* * End [yosemitech_y700] */
2253
+ #endif
2254
+
2255
+
2224
2256
#if defined BUILD_SENSOR_YOSEMITECH_Y4000
2225
2257
// ==========================================================================
2226
2258
// Yosemitech Y4000 Multiparameter Sonde (DOmgL, Turbidity, Cond, pH, Temp,
0 commit comments