Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pong bez przerwań i opóźnień, na pętlach
- #include <8051.h>
- #define LEDS P1 // port do diod
- int main(void){
- LEDS = 1;
- int i;
- while(1){
- for(i = 0; i < 7; i++)
- LEDS = LEDS << 1;
- for(i = 0; i < 7; i++)
- LEDS = LEDS >> 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment