I realized that pins #3 and #4 were not both giving me 5V high and pin #3 was not following the directions of some code I wrote. Pin #3 is giving me a constant high voltage of 3V, while pin #4 is alternating according to the code every 2 seconds, but it gives a high of ~1.5V. Coincidentally, these are the two pins that are shared with the USB. There's probably a simple fix related to that then, since the other 3 pins work fine. I appreciate any help. Here is the snippet of the code I'm using to test this out.
Code: Select all
int positionThree = 3;
int positionFour = 4;
void setup()
{
}
void loop()
{
digitalWrite(positionThree, LOW);
digitalWrite(positionFour, HIGH);
delay(2000);
digitalWrite(positionThree, HIGH);
digitalWrite(positionFour, LOW);
delay(2000);
}