Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void check_AUTO_OFF(void)
- {
- set_sleep_mode(SLEEP_MODE_PWR_DOWN);
- if (AUTO_OFF_Counter >= AUTO_OFF)
- {
- INTERRUPT_INT0_DISABLE;
- AUTO_OFF_Counter = 0;
- SUMMER_AN;
- _delay_ms(4);
- SUMMER_AUS;
- GO_SLEEP_Text_Maxi_Dice();
- TIMSK &= ~(1<<OCIE0);
- PORTA = 0x00;
- PORTB = 0x00;
- PORTC = 0x00;
- PORTD = 0x00;
- DDRA = 0x00;
- DDRB = 0x00;
- DDRC = 0x00;
- DDRD = 0x00;
- INTERRUPT_INT0_ENABLE;
- clear_screen();
- sleep_enable();
- sleep_cpu();
- sleep_disable();
- INTERRUPT_INT0_DISABLE;
- for (uint8_t x = 0 ; x < 250 ; x++)
- TIMSK |= (1<<OCIE0);
- DDRA |= ((1<<PA0) | (1<<PA1) | (1<<PA2) | (1<<PA3) | (1<<PA4) | (1<<PA5) | (1<<PA6) | (1<<PA7));
- DDRB |= ((1<<PB0) | (1<<PB1) | (1<<PB2) | (1<<PB3) | (1<<PB5) | (1<<PB6) | (1<<PB7));
- DDRC |= ((1<<PC2) | (1<<PC3) | (1<<PC4) | (1<<PC5) | (1<<PC6) | (1<<PC7));
- SUMMER_AN;
- _delay_ms(4);
- SUMMER_AUS;
- StartUP_Text_Maxi_Dice();
- Show_Werbung();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement