Hello,
I want to display temperature on 7-segment displays using Arduino board and TLC5940 drivers. I've already received temperature data from Yahoo Weather API and saved it in a variable. Now I'd like to show the "number" using 5 separate 7-segment displays. I control them via TLC5940 drivers (http://www.ti.com/lit/ds/symlink/tlc5940.pdf) and use existing library for arduino.
I've already defined temp variable and each numbers:
int temp; //variable (temperature value)
int numbers[10][8] = {{1,1,1,0,1,1,1,0},
{0,0,1,0,1,0,0,0}, //0
{1,1,0,0,1,1,0,1}, //1
{0,1,1,0,1,1,0,1}, //2
{0,0,1,0,1,0,1,1}, //3
{0,1,1,0,0,1,1,1}, //4
{1,1,1,0,0,1,1,1}, //5
{0,0,1,0,1,1,0,0}, //6
{1,1,1,0,1,1,1,1}, //7
{0,1,1,0,1,1,1,1}}; //8
but I don't know what to do next...
Maybe some of you already do something with 7-segment displays and TLC5940 drivers? If so, it would be great to give me some advice...
Thank you