Move main.cpp to test. Move lcd.cpp and lcd.h to src
This commit is contained in:
18
test/main.cpp
Normal file
18
test/main.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#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 "../src/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);
|
||||
}
|
Reference in New Issue
Block a user