withBounds

open fun withBounds(openPosition: Double, closePosition: Double): Switch

Set the new bounds this servo should respect for opened and closed positions.

Return

this

Parameters

openPosition

the open position to respect

closePosition

the closed position to respect