Skip to content

Instantly share code, notes, and snippets.

@Foadsf
Created May 24, 2017 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Foadsf/697be962b0529a24b962b1f79accba35 to your computer and use it in GitHub Desktop.
Save Foadsf/697be962b0529a24b962b1f79accba35 to your computer and use it in GitHub Desktop.
Blinking LED using PIC Microcontroller following this youtube tutorial: https://www.youtube.com/watch?v=FBQSKTVNg4I
#include <16f877.h>
#fuses HS,NOWDT,NOLVP,NOPROTECT
#USE delay (clock=20M)
void main(){
while(1){
output_high(PIN_B0);
delay_ms(1000);
output_low(PIN_B0);
delay_ms(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment