Created
October 22, 2019 21:03
-
-
Save d-boz-wtwh/68d6038ce1fc2c010b8c498025a8616e to your computer and use it in GitHub Desktop.
Microcontroller Projects
This file contains 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<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