Files
SyncHome/trunk/workspace/AVR-Paulino_m168P/main.c
2023-03-13 08:36:51 +00:00

46 lines
745 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 m16 v0";
char *str2="Ready.";
const unsigned char bmp[]={0x7E, 0x81, 0x95, 0xA1, 0xA1, 0x95, 0x81, 0x7E};
unsigned char toggle;
DDRC |= _BV(PC0);
toggle=1;
LCD_Init(); // LCD initialization
LCD_Cls(); // clear the LCD
LCD_SetContrast(0x40);
LCD_WriteXY(0,0,str1);
LCD_WriteXY(0,1,str2);
while(1)
{
if (toggle==1){
toggle=0;
LCD_GotoXY(0,2);
LCD_Char(0x5F);
}
else {
toggle=1;
LCD_GotoXY(0,2);
LCD_Char(' ');
}
PORTC ^= 0b00000001;
_delay_ms(500);
}
return 0;
}