Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /*
  2. * GccApplication3.c
  3. *
  4. * Created: 2018-01-22 15:35:27
  5. * Author : hamlin-6
  6. */
  7.  
  8. #include <avr/io.h>
  9.  
  10. int main(void)
  11. {
  12. CLKPR = 0x80;
  13. CLKPR = 0x00;
  14.  
  15.  
  16. LCDCCR = 0x0F;
  17. LCDCRB = 0xB7;
  18. LCDFRR = 0x07;
  19. LCDCRA = 0xC0;
  20.  
  21. while (1){
  22. void writeChar(char ch, int pos){
  23.  
  24. char ch;
  25. int pos;
  26. int ASCII = {0x1551, 0x0110, 0x1E11, 0x1B11, 0x0B50, 0x1B41, 0x1F41, 0x0111, 0x1F51, 0x1B51};
  27.  
  28. if (pos > 5 | pos < 0){ //Kollar om pos ligger på en godtagbar position
  29. return;
  30. }
  31.  
  32. if (ch > 9 |ch < 0){ //Kollar om ch är en godtagbar siffra
  33. return;
  34. }
  35.  
  36. for (int i = 0; i < 4; i++){
  37.  
  38. }
  39.  
  40. }
  41. }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement