Skip to content

Instantly share code, notes, and snippets.

@chukitow
Created April 5, 2014 18:46
Show Gist options
  • Select an option

  • Save chukitow/9996213 to your computer and use it in GitHub Desktop.

Select an option

Save chukitow/9996213 to your computer and use it in GitHub Desktop.
#include<16F877a.h>
#fuses XT, PUT, NODEBUG , NOBROWNOUT , NOPROTECT , NOLVP
#use delay(clock=4000000)
void main()
{
int i = 1;
set_tris_d(0x00);
while(true)
{
if(i==0)
i=1;
output_d(i);
delay_ms(1000);
i+=i;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment