41 lines
660 B
C
41 lines
660 B
C
/*
|
|
* main.c
|
|
*
|
|
* Created on: 10.02.2014
|
|
* Author: q242695
|
|
*/
|
|
//#include <avr/io.h>
|
|
//#include <util/delay.h>
|
|
#include "main.h"
|
|
|
|
|
|
int main (void)
|
|
{
|
|
char *str1 = "Paulino m128 v0.1";
|
|
char *str2 = "Ready.";
|
|
const unsigned char bmp[]={0x7E, 0x81, 0xA5, 0x81, 0xA5, 0x99, 0x81, 0x7E};
|
|
|
|
DDRB |= _BV(PB0);
|
|
OLED_Init();
|
|
_delay_ms(3000); // wait for a Display INIT
|
|
|
|
OLED_ShowSplashScreen(0x00);
|
|
OLED_Cls();
|
|
|
|
OLED_SetFont(10);
|
|
OLED_WriteXY(0,0,str1);
|
|
OLED_WriteXY(0,1,str2);
|
|
OLED_CR();
|
|
OLED_ShowCursor(1);
|
|
|
|
while(1)
|
|
{
|
|
PORTB ^= 0b00000001;
|
|
_delay_ms(500);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|