# I need a library for 8x8 matrix for numbers from 1 to 99

So i’m creating a device that has to tell humidity and temp at the same time.
One matrix will display temp and another one will display humidity.
And the problem that i came accros is that i cant find a way to display 2 numbers on one display like 22 or 33.
The only way right now is to make (or find) numbers from 1 to 99 .
So does any1 know where i can find a library that has all of the numbers?
Or maybe someone knows a way to display 2 numbers as i said.
P.S i tried looking and i didn’t find it.

Do you have a particular display in mind? If so, post links to the display, and post the code, using code tags.

A wiring diagram might be helpful (but not Fritzing).

Check out the "How to use this forum" post for how to do this.

``````int DIN = 12;
int CS =  11;
int CLK = 10;\

int pinTemp = A1;   //This is where our Output data goes
int temp;
byte R[8]=     {0xc2, 0xa1, 0x91, 0x8e, 0xc2, 0xa1, 0x91, 0x8e};
byte O[8]=     {0xc2, 0xa1, 0x91, 0x8e, 0x42, 0x91, 0x91, 0x6e};
byte B[8]=     {0xc2, 0xa1, 0x91, 0x8e, 0x18, 0x14, 0x12, 0xff};
byte C[8]=     {0xc2, 0xa1, 0x91, 0x8e, 0x47, 0x89, 0x89, 0x71};

LedControl lc=LedControl(DIN,CLK,CS,0);

void setup(){
lc.shutdown(0,false);       //The MAX72XX is in power-saving mode on startup
lc.setIntensity(0,15);      // Set the brightness to maximum value
lc.clearDisplay(0);         // and clear the display
Serial.begin(9600);
}

void loop()
{

temp = analogRead(pinTemp); //Read the analog pin
temp = temp * 0.48828125;   // convert output (mv) to readable celcius
Serial.print("Temperature: ");
Serial.print(temp);
Serial.println("C");  //print the temperature status

skait();
delay(5000);

}

void skait()
{
if(temp <= 22){printByte(R);};

if(temp == 23){printByte(O);};

if(temp == 24){printByte(B);};

if(temp >= 25){printByte(C);};
}

void printByte(byte character [])
{
int i = 0;
for(i=0;i<8;i++)
{
lc.setRow(0,i,character[i]);
}
}
``````

OK, so you need to start by telling - which (Web link to it) matrix?

Show (pictures) how the numbers you are currently able to display, appear.

you can alternate the display so for 5 seconds the temp and 2 seconds the humidity. for example and the info is needed only for 1 number so from 0 to 9.