lcd/main.cpp

18 lines
435 B
C++

#define F_CPU 8000000UL /* Define CPU Frequency e.g. here 8MHz */
#include <avr/io.h> /* Include AVR std. library file */
#include <util/delay.h> /* Include Delay header file */
#include "lcd.h"
int main()
{
lcd::init(); /* Initialization of LCD*/
lcd::string("CVR"); /* Write string on 1st line of LCD*/
lcd::command(0xC0); /* Go to 2nd line*/
lcd::string("Hello World"); /* Write string on 2nd line*/
while(1);
}