Guest User

Untitled

a guest
Apr 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <AVR/IO.h>
  2. #include <AVR/DELAY.h>
  3. #include "LIB_BASIC.h"
  4. #include "LIB_LED_DISPLAY.h"
  5.  
  6. int main(void)
  7. {
  8. UINT8_T TEMP1=0;
  9. UINT8_T TEMP2=0;
  10.  
  11. DISPLAY_INIT();
  12.  
  13. WHILE(1)
  14. {
  15. TEMP1 = 128;
  16. TEMP2 = TEMP1 %10;
  17. DISPLAY_LED(TEMP2,1);
  18. TEMP2 = TEMP1%100/10;
  19. DISPLAY_LED(TEMP2,2);
  20. TEMP2 = TEMP1/100;
  21. DISPLAY_LED(TEMP2,2);
  22. }
  23. }
Add Comment
Please, Sign In to add comment