Advertisement
RuiViana

Teste.C

Jun 2nd, 2020
1,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. / Inicio  *********************************************************************
  2. void main()
  3. {
  4. // Configura as Portas *********************************************************
  5.    TRISA = 0b00100000;          // define PORTA como ssesssss
  6.    TRISB = 0b00000000;          // define PORTB como ssssesss
  7.    while(1)
  8.    {
  9.        Delay_ms(500);
  10.        PORTB.F0 = 0;
  11.        Delay_ms(500);
  12.        PORTB.F0 = 1;
  13.    }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement