Wrong variable definition
API for GPIO
Switches indicated opposite IN/OUT