[fix] pinMode  for switch init