GPIO uses flush instead of close to change the state