Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <avr/io.h>
  2. #include "lcd.h"
  3.  
  4. int main(void)
  5. {
  6. DDRD = _BV(4);
  7. TCCR1A = _BV(COM1B1) | _BV(COM1B0) | _BV(WGM10);
  8. TCCR1B = _BV(WGM12) | _BV(CS11);
  9.  
  10. OCR1B = 250;
  11.  
  12. lcd_init(LCD_DISP_ON);
  13. lcd_clrscr();
  14. lcd_puts("Hello World");
  15. while (1)
  16. {
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement