My situation: A power button (non-latching, 6 pins, but only 3 connected) on a board. When pressed, this button first bridges pins 1 and 2, then pins 2 and 3 and then returns to its original position. Pin 1 is connected to GND via 10k, pin 2 is 5V and pin 3 is connected to GND via 10k and to signal.
Now I wanted to emulate the pushbutton (which I now have desoldered) with a slide switch with 2 pins (ON/OFF) and had tried the instructions from ChatGPT with transistors (2N2222) and capacitors, but that didn't work.
Can someone here show me a small circuit, or what do I have to do to realise my switch?
Here is the guide ChatGPT wrote (doesn't make sense or does it?): https://pastebin.com/raw/54JKe5kN
EDIT: Could I realize it with an ATTiny85?