I am building a project which uses a separate microcontroller to turn on some LEDs and make them flicker. The code for this is all working.
In order to turn the LED-running microcontroller on, I attached a transistor to it, and correctly wired it so that if I sent a 'LOW' from my arduino to the transistor, it would allow the current to pass through it.
I have just found that it is actually necessary for my sketch to send a HIGH in order to keep some delays running (im not sure why, but thats what I figured out).
So basically I need to make something that will invert the signal being sent:
If 5v is recieved by new circuitry, 0v is sent AND
If 0v is recieved by new circuitry, 5v is sent.
That may sound a little confusing but im not sure how I could word it better.
Thanks in advance for the help