//connect seven segment display on port A and port B 2 of them AND display 25
// #include <stdint.h>
// #define DDRA (*(volatile uint8_t*)0x21)
// #define PORTA (*(volatile uint8_t*)0x22)
// #define DDRB (*(volatile uint8_t*)0x24)
// #define PORTB (*(volatile uint8_t*)0x25)
// uint8_t seg[10] = {
// 0x3F, 0x06, 0x5B, 0x4F, 0x66,
// 0x6D, 0x7D, 0x07, 0x7F, 0x6F
// };
// int main(void){
// DDRA = 0x7F;
// DDRB = 0x7F;
// PORTA = seg[2]; // display 2
// PORTB = seg[5]; // display 5
// while (1);
// }
// //display numbers from 0.0 to 9.9 with 1-second delay.
// #include <stdint.h>
// #define DDRA (*(volatile uint8_t*)0x21)
// #define PORTA (*(volatile uint8_t*)0x22)
// #define DDRB (*(volatile uint8_t*)0x24)
// #define PORTB (*(volatile uint8_t*)0x25)
// uint8_t seg[10] = {
// 0x3F, 0x06, 0x5B, 0x4F, 0x66,
// 0x6D, 0x7D, 0x07, 0x7F, 0x6F
// };
// void delay1sec(void){
// TCNT1 = 0;
// TCCR1A = 0x00;
// TCCR1B = 0x05;
// while (TCNT1 < 15625);
// TCCR1B = 0x00;
// }
// int main(void){
// DDRB = 0x7F; // integer digit
// DDRA = 0xFF; // decimal digit + dp
// while (1){
// for (uint8_t i = 0; i <= 9; i++){
// for (uint8_t j = 0; j <= 9; j++){
// PORTB = seg[i]; // integer part
// PORTA = seg[j] | (1 << 7); // decimal part + dp
// delay1sec();
// }
// }
// }
// }
//