#include <12f675.h> #fuses NOWDT,INTRC_IO,NOMCLR #use delay (clock=4000000) #use fast_io (a) #define delay 60 void main() { set_tris_a(0x00); output_a(0x00); while (true) { if (input(pin_a3)) { output_high(pin_a0); delay_ms(delay); output_low(pin_a0); delay_ms(delay); output_high(pin_a0); delay_ms(delay); output_low(pin_a0); delay_ms(delay); output_high(pin_a1); delay_ms(delay); output_low(pin_a1); delay_ms(delay); output_high(pin_a1); delay_ms(delay); output_low(pin_a1); delay_ms(delay); output_high(pin_a2); delay_ms(delay); output_low(pin_a2); delay_ms(delay); output_high(pin_a2); delay_ms(delay); output_low(pin_a2); delay_ms(delay); output_high(pin_a4); delay_ms(delay); output_low(pin_a4); delay_ms(delay); output_high(pin_a4); delay_ms(delay); output_low(pin_a4); delay_ms(delay); output_high(pin_a5); delay_ms(delay); output_low(pin_a5); delay_ms(delay); output_high(pin_a5); delay_ms(delay); output_low(pin_a5); delay_ms(delay); } } }
YouTube Kanalımızdan videosunu izleyebilr siniz.
Abone olmayı unutmayın...
Hiç yorum yok:
Yorum Gönder
Her yorum bilgidir. Araştırmaya devam...