Nodka_SetPwmParams
Sets parameters of the light controller.
Syntax
C++
Python
def Nodka_SetPwmParams( state: Nodka_State, /, *, inServerPort: int | None = None, inDeviceConfigPath: str | None = None, inDeviceLightControllerPort: int | None = None, inDevId: int = 0, inChIdx: NodkaLightControlChannel = NodkaLightControlChannel.LightControlCh0, inPwmMode: NodkaPwmMode = NodkaPwmMode.SoftSwitch, inPwmValue: int = 0, inPwmHoldingTime: int = 0, inPwmOnOff: int = 0, inTimeout: int = 100 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | Nodka_State | |||
![]() |
inServerPort | int | None | 1 - 65535 | None | Port of NodkaServer service. |
![]() |
inDeviceConfigPath | str | None | None | Path to nkio_config.ini file with I/O configuration. | |
![]() |
inDeviceLightControllerPort | int | None | 1 - ![]() |
None | COM port used by the light controller (if supported by the device). |
![]() |
inDevId | int | 0 - 255 | 0 | ID of the device (0x01 for the light controller). |
![]() |
inChIdx | NodkaLightControlChannel | NodkaLightControlChannel.LightControlCh0 | Light controller channel ID. | |
![]() |
inPwmMode | NodkaPwmMode | NodkaPwmMode.SoftSwitch | Trigger mode of the light controller. | |
![]() |
inPwmValue | int | 0 - 100 | 0 | Brightness level of the light controller. |
![]() |
inPwmHoldingTime | int | 0 - 255 | 0 | Duration of the 'on' state of the light controller (see also: Nodka_SetHoldingTimeUnit). |
![]() |
inPwmOnOff | int | 0 - 1 | 0 | Parameter to turn the light on or off. |
![]() |
inTimeout | int | 0 - ![]() |
100 | Timeout for the callback function. |



