Last active
December 27, 2015 20:49
-
-
Save beigna/7387727 to your computer and use it in GitHub Desktop.
PIC16F84A Flashing LED http://www.youtube.com/watch?v=1XdFKTayD8Q
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <16f84a.h> | |
#fuses XT,NOWDT | |
#use delay(clock=4000000) | |
void main(){ | |
set_tris_B(0b00000000); | |
while (True){ | |
output_B(0b00000001); | |
delay_ms(500); | |
output_B(0b00000010); | |
delay_ms(500); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment