Hello!, sry for the n00b question, but i'm new at this.
I'm trying to replace a switch with a transistor, powered by a raspberry pi, but don't quite get it to work.
the switch that i'm trying to control is 5v at max 1A (the right click button of a computer mouse)
my transistor is a BC337-25
the pi is putting out 3.3v on its gpio.
this is my setup:

what am I doing wrong?
I'm trying to replace a switch with a transistor, powered by a raspberry pi, but don't quite get it to work.
the switch that i'm trying to control is 5v at max 1A (the right click button of a computer mouse)
my transistor is a BC337-25
the pi is putting out 3.3v on its gpio.
this is my setup:

what am I doing wrong?