Skip to content

Instantly share code, notes, and snippets.

@d-boz-wtwh
Created October 22, 2019 21:03
Show Gist options
  • Save d-boz-wtwh/68d6038ce1fc2c010b8c498025a8616e to your computer and use it in GitHub Desktop.
Save d-boz-wtwh/68d6038ce1fc2c010b8c498025a8616e to your computer and use it in GitHub Desktop.
Microcontroller Projects
#include<reg52.h>
void delay()
{
unsigned int i,j;
for(i=0;i< 500;i++)
for(j=0;j< 1000;j++);
}
void main()
{
unsigned int count;
while(1){
for(count=0;count<=255;count++)
P1=count;
delay();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment