Guest User

Untitled

a guest
Nov 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. /* Place your initialization/startup code here (e.g. MyInst_Start()) */
  2. const int LED_ONST=0x1;
  3. for(;;)
  4. {
  5. /* Place your application code here. */
  6. while (Status_Reg_1_Read()==0){};
  7. Cydelay(5000);
  8. Control_Reg_1_write(1);
  9. // com este código o LED está ligado 5s e depois apaga-se
  10. }
Add Comment
Please, Sign In to add comment