Arduino transistor switch
You can delete both 1 K resistors, because in both cases there is a 10 K resistor to limit the current.
The schematic just changes, so there goes one question.
What is the logic polarity for each circuit?  Each GPIO pin has two states.  What is the desired circuit action for each state of each GPIO pin?