IR Remote Control (1) 썸네일형 리스트형 ATmega128 - 리모콘 수신 프로그램 (업그레이드). #define F_CPU 16000000UL #include #include #include #include #define CLK 16000000#define PRESCALE 256#define TIME_US 100#define TIMER0_CNT (CLK*TIME_US/(256*1000000)) char _remocon_counter,_save_remocon,_flg_remocon;char bit_input;char bounce_check = 0; unsigned char _remocon_custom,_remocon_custom_2;unsigned char _remocon_data,_remocon_data_2; int _counter_remocon; void port_init() { DDRA = 0xf.. 이전 1 다음