Skip to content

Instantly share code, notes, and snippets.

@Foadsf
Created May 24, 2017 22:21
Show Gist options
  • 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