Add files via upload

pull/7/head
Sylaina 6 years ago committed by GitHub
parent 28e6dacbda
commit 9b10c32474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,32 @@
/* Name: main.c
* Author: <insert your name here>
* Copyright: <insert your copyright message here>
* License: <insert your license reference here>
*/
#include <stdlib.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include "i2c.h"
#include "lcd.h"
int main(void)
{
/* insert your hardware initialization here */
i2c_init();
lcd_init(LCD_DISP_ON);
lcd_clrscr();
lcd_puts_p(PSTR("OLED Display "));
lcd_gotoxy(0,1);
lcd_puts_p(PSTR("with I2C "));
sei();
for(;;){
/* insert your main loop code here */
}
return 0; /* never reached */
}
Loading…
Cancel
Save