Switch.setActive

Changes the state of sw to the desired one.

class Switch
void
setActive
()

Parameters

isActive bool

true if sw should be active, and false otherwise