uint8_t display7seg[16] = {0x7E,
0x30, 0x6D, 0x79, 0x33, 0x5B, 0x5F,
0x70, 0x7F, 0x7B, 0x77, 0x1F, 0x4E, 0x3D, 0x4F, 0x47};
uint8_t coluna[4] = {0xF7, 0xFB, 0xFD, 0xFE};
void setup() {
// put your setup code here, to run once:
// put your setup code here, to run once:
// saída display
DDRD = 0xFF; //DDRx (1) saida (0) entrada
PORTD = ~display7seg[0];
DDRC = 0x00;
DDRC = 0xFF;
}
void loop() {
// put your main code here, to run repeatedly:
// coluna 1
if (~PINC & 1 << 1){
PORTD = display7seg[5];
}
}