LED Ternary Multiplication

Hi, so i'm still a beginner in the filed of arduino programming, and I wanted to know how could I make an arduino operate like this procedure:

  1. Enter the first number on button 1.
  2. Press the button 2 for the multiplication symbol.
  3. Enter the second number on button 1.
  4. Arduino should display using six LED's the first number times the second number in trinary.
  5. Press the button 2 to clear.
  6. Can repeat these steps to multiply a different two numbers without resetting the arduino.

Note: Ternary is displayed with 0(Off), 1(Low brightness), 2(High brightness).

That sounds like an interesting project! What are you going to use it for? Pardon my suspicious nature, but it sounds so very much like an exercise given in school/college. I dont do other persons homework.

If it is because it is a nice challenge to programming, then I suggest you start by writing a sketch that can read a button and send a single character to Serial. What you'll find is the first minor hurdle, "switch debounce". When you fix that you can expand the program to count the button 1 pushes and and the answer on Serial when 2nd button is pushed.

If there is a particular issue that dumbfounds you, then post the code you've tried so far and explain what you want it to do, and what it actually does.

Lastly . Where does the "trinary" come in? A LED is a "binary" device (either On or off). Or are your "LEDs" actually digit display (7-seg) and you are displaying a number in trinary (i.e. using digits 0, 1 and 2 only)?
Edit: The OP edited his question explaining the trenary. So my question here is thus superflous.( I dont like edits to top ost that make my answer/help/clarifications seem idiotic.)

Msquare:
Where does the "trinary" come in? A LED is a "binary" device (either On or off). Or are your "LEDs" actually digit display (7-seg) and you are displaying a number in trinary (i.e. using digits 0, 1 and 2 only)?

Trinary-state LED? Off - Low brightness - High brightness ?

How about a bi color LED ?
But that has 4 states..

MAS3:
How about a bi color LED ?
But that has 4 states..

Not if it is a bipolar one (2 legs), then it only has 3. (Red, Green, Off).

off, dim red, bright red, dim green, bright green: "quinternary"
off, dim red, med red, bright red, dim green, med green, bright green: "septernary"
off or variations of as many gradations of red, orange, yellow, green as can be differentiated (quickly?) = _____nary?
(Way-out-of-the-ordinary?)

How quickly and consistently could those states be integrated?
The fewer the better, obviously.

But, we digress.

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);
  }
}