Move main.cpp to test. Move lcd.cpp and lcd.h to src

This commit is contained in:
2020-12-10 17:20:16 +13:00
parent 2281caedfc
commit 511b5e52b0
4 changed files with 3 additions and 3 deletions

18
test/main.cpp Normal file
View 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);
}