주방 타이머
헤더파일더보기#define F_CPU 16000000L#include #include #include #define __delay_t 500#define OPMODE_MAX 3#define STATE_MAX 3uint8_t digit[] = {0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x27, 0x7F, 0x67, 0x77, 0x7c, 0x58, 0x5e, 0x79, 0x71};char arr[5];char *PA = &PORTD, *PB = &PORTC;unsigned long cnt = 0, tcnt = 0;volatile int opmode = 0, state = 0; //최적화 금지int t = 0; unsigned long a = 0;int bott1 = 0, ..
2024. 12. 19.