Setting inverted to true means that turning the switch on will output 0v on the gpio. Turning the switch off will output 3.3v.
Setting inverted to true means that turning the switch on will output 0v on the gpio. Turning the switch off will output 3.3v.