mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-29 07:32:18 +03:00
исправил библиотеки
This commit is contained in:
@@ -11,11 +11,12 @@ class HX710b : public IoTItem {
|
||||
|
||||
public:
|
||||
HX710b(String parameters) : IoTItem(parameters) {
|
||||
int data, clock;
|
||||
int data, clock, gain;
|
||||
jsonRead(parameters, "data", data);
|
||||
jsonRead(parameters, "clock", clock);
|
||||
jsonRead(parameters, "gain", gain);
|
||||
|
||||
pressure_sensor.begin(data, clock);
|
||||
pressure_sensor.begin(data, clock, gain);
|
||||
pressure_sensor.tare();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user