I was thinking about this today.
I see that you modified your original post to confirm my off-dim-bright interpretation.
But nothing more.
Waiting for some kind soul to post the complete job?
Here's a "trinary" counter display --
// trinary01
// trinary display
// three places
byte eval;
byte e2;
byte e1;
byte e0;
const byte pin9s = 11;
const byte pin3s = 10;
const byte pin1s = 9;
byte triDigit [3] = {0,15,220};
void setup ()
{
pinMode(pin1s, OUTPUT);
pinMode(pin3s, OUTPUT);
pinMode(pin9s, OUTPUT);
digitalWrite(pin1s,HIGH);
digitalWrite(pin3s,HIGH);
digitalWrite(pin9s,HIGH);
delay(1000);
}
void loop ()
{
for(eval=0; eval < 27; eval++)
{
e2 = eval / 9;
e1 = (eval % 9) / 3;
e0 = (eval % 9) % 3;
analogWrite(pin9s,triDigit[e2]);
analogWrite(pin3s,triDigit[e1]);
analogWrite(pin1s,triDigit[e0]);
delay(1000);
}
}