TEXT 27
Using shift to turn on led Guest on 6th February 2025 02:48:50 PM
  1.  
  2.  
  3. #include <mega32.h>
  4. #include <delay.h>
  5.  
  6.  
  7. void main(void)
  8. {
  9.     char a = 0;
  10.   DDRA = 0xFF ;
  11.  
  12. while (1)
  13.       {
  14.          PORTA = a;
  15.          a >>= 1;
  16.          if(a==0)
  17.             a = 0b10000000;
  18.          delay_ms(200);
  19.       }
  20. }

Hightechrobo bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.