Advertisement
Guest User

Untitled

a guest
Jul 16th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. void display (uint16_t num) // FUNCTION TO DISPLAY VALUES ON SSD
  2. {
  3. switch(num)
  4. {
  5. case 0:
  6. PORTD=0x3F;
  7. break;
  8. case 1:
  9. PORTD=0×06;
  10. break;
  11. case 2:
  12. PORTD=0x5B;
  13. break;
  14. case 3:
  15. PORTD=0x4F;
  16. break;
  17. case 4:
  18. PORTD=0×66;
  19. break;
  20. case 5:
  21. PORTD=0x6D;
  22. break;
  23. case 6:
  24. PORTD=0x7D;
  25. break;
  26. case 7:
  27. PORTD=0×07;
  28. break;
  29. case 8:
  30. PORTD=0x7F;
  31. break;
  32. case 9:
  33. PORTD=0x6F;
  34. break;
  35. default:
  36. PORTD=0xFF;
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement