I'm trying to get my Digispark to light three LEDs, on P1, P2 and P5, but right now the only pin it'll write to is P5.
Here's the code:
//initialize LED pins
#define green 1
#define yellow 2
#define red 5
void setup()
{
}
void loop()
{
digitalWrite(red, HIGH);
digitalWrite(yellow, HIGH);
digitalWrite(green, HIGH);
}
and here's my circuit diagram:

Can anyone tell me why I'm only getting output on P5?