First time actually using the hedears on my raspberry pi zero w. These headers were soldered on when I got it.
When I connect my red lead to the 5v pin, it lights up, so the circuit's correct. When I connect it to pin 16, I get nothing. I believe I'm interpreting the pins correctly.
It occurs to me the I think I assumed that the pins put out 5 V.
Here it is lit with 5v.
Here it is attached to pin 16:
Here is my source code:
#include <wiringPi.h>
const int RED_LED = 16;
int main (void)
{
wiringPiSetup () ;
pinMode (RED_LED, OUTPUT) ;
for (;;)
{
digitalWrite (RED_LED, HIGH);
delay(500);
digitalWrite (RED_LED, LOW);
delay(500) ;
}
return 0 ;
}