Switch.setActive

void setActive(bool isActive)

Changes the state of sw to the desired one.

Parameters

isActivetrue if sw should be active, and false otherwise