You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SensorPH | 1 | PH ( SKU SEN161 ) sensor, measure the analog value from the amplifier module | -
147
+
SensorPca9685W | 1 | Generic dimmer sensor (S_DIMMER) used to drive a single channel pwm output of PCA9685 | https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library
148
+
SensorPca9685Rgb | 1 | Generic RGB-dimmer sensor (S_RGB_LIGHT) used to drive RGB resp. 3-channel pwm output of PCA9685 | https://github.com/adafruit/Adafruit-PWM-Servo- Driver-Library
149
+
SensorPca9685Rgbw | 1 | Generic RGBW-dimmer sensor (S_RGBW_LIGHT) used to drive RGBW resp. 4-channel pwm output of PCA9685| https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library
147
150
148
151
Those sensors requiring a pin to operate would take it as an argument in the constructor.
149
152
NodeManager automatically creates all the child_ids, assigning an incremental counter. If you need to set your own child_id, pass it as the last argument to the constructor
@@ -268,7 +271,7 @@ You can interact with each class provided by NodeManager through a set of API fu
@@ -882,6 +885,60 @@ Each sensor class may expose additional methods.
882
885
void setPH4Voltage(float value);
883
886
~~~
884
887
888
+
* SensorPca9685W
889
+
~~~c
890
+
// [101] set the effect to use for a smooth transition, can be one of SensorDimmer::EASE_LINEAR (0), SensorDimmer::EASE_INSINE (1), SensorDimmer::EASE_OUTSINE (2), SensorDimmer::EASE_INOUTSINE (3) (default: EASE_LINEAR)
891
+
void setEasing(int value);
892
+
// [102] the duration of entire the transition in seconds (default: 1)
893
+
void setDuration(int value);
894
+
// [103] the duration of a single step of the transition in milliseconds (default: 100)
895
+
void setStepDuration(int value);
896
+
//get instance of PCA9685-board
897
+
Adafruit_PWMServoDriver* getPWMServoDriver();
898
+
//set instance of PCA9685-board, if using more than one pca9685-dimmer sensor on the same pca9685-board
//set the RGB (red/green/blue) value as hex-string (e.g. 000000...black/off, ff0000...red, 00ff00...green, 0000ff...blue, ffa500...orange, ffffff...white)
901
+
void setRgbVal(String hexstring);
902
+
//get the current RGB (red/green/blue) value as hex-string
903
+
String getRgbVal();
904
+
~~~
905
+
906
+
* SensorPca9685Rgb
907
+
~~~c
908
+
// [101] set the effect to use for a smooth transition, can be one of SensorDimmer::EASE_LINEAR (0), SensorDimmer::EASE_INSINE (1), SensorDimmer::EASE_OUTSINE (2), SensorDimmer::EASE_INOUTSINE (3) (default: EASE_LINEAR)
909
+
voidsetEasing(int value);
910
+
// [102] the duration of entire the transition in seconds (default: 1)
911
+
void setDuration(int value);
912
+
// [103] the duration of a single step of the transition in milliseconds (default: 100)
913
+
void setStepDuration(int value);
914
+
//get instance of PCA9685-board
915
+
Adafruit_PWMServoDriver* getPWMServoDriver();
916
+
//set instance of PCA9685-board, if using more than one pca9685-dimmer sensor on the same pca9685-board
//set the RGB (red/green/blue) value as hex-string (e.g. 000000...black/off, ff0000...red, 00ff00...green, 0000ff...blue, ffa500...orange, ffffff...white)
919
+
void setRgbVal(String hexstring);
920
+
//get the current RGB (red/green/blue) value as hex-string
921
+
String getRgbVal();
922
+
~~~
923
+
924
+
* SensorPca9685Rgbw
925
+
~~~c
926
+
// [101] set the effect to use for a smooth transition, can be one of SensorDimmer::EASE_LINEAR (0), SensorDimmer::EASE_INSINE (1), SensorDimmer::EASE_OUTSINE (2), SensorDimmer::EASE_INOUTSINE (3) (default: EASE_LINEAR)
927
+
void setEasing(int value);
928
+
// [102] the duration of entire the transition in seconds (default: 1)
929
+
void setDuration(int value);
930
+
// [103] the duration of a single step of the transition in milliseconds (default: 100)
931
+
void setStepDuration(int value);
932
+
//get instance of PCA9685-board
933
+
Adafruit_PWMServoDriver* getPWMServoDriver();
934
+
//set instance of PCA9685-board, if using more than one pca9685-dimmer sensor on the same pca9685-board
//set the RGBW (red/green/blue/white) value as hex-string (see RGB-examples from PCA9685RGB and add "00".."ff" for the white-channel)
937
+
void setRgbwVal(String hexstring);
938
+
//get the current RGBW (red/green/blue/white) value as hex-string
939
+
String getRgbwVal();
940
+
~~~
941
+
885
942
### OTA Configuration
886
943
887
944
When `NODEMANAGER_OTA_CONFIGURATION` is set to ON the API presented above can be also called remotely through `SensorConfiguration`, which is automatically added to NodeManager. SensorConfiguration exposes by default child id 200 that can be used to interact with the service by sending `V_CUSTOM` type of messages and commands within the payload. For each `REQ` message, the node will respond with a `SET` message if successful.
0 commit comments