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

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

View File

@ -5,7 +5,7 @@ CC=avr-g++
OBJCOPY=avr-objcopy OBJCOPY=avr-objcopy
CFLAGS=-Wall -g -mmcu=${MCU} -DF_CPU=${F_CPU} -I. CFLAGS=-Wall -g -mmcu=${MCU} -DF_CPU=${F_CPU} -I.
TARGET=main TARGET=main
SRCS=*.cpp SRCS=src/lcd.cpp test/main.cpp
default: build flash default: build flash

View File

View File

@ -1,7 +1,7 @@
#define F_CPU 8000000UL /* Define CPU Frequency e.g. here 8MHz */ #define F_CPU 8000000UL /* Define CPU Frequency e.g. here 8MHz */
#include <avr/io.h> /* Include AVR std. library file */ #include <avr/io.h> /* Include AVR std. library file */
#include <util/delay.h> /* Include Delay header file */ #include <util/delay.h> /* Include Delay header file */
#include "lcd.h" #include "../src/lcd.h"
@ -15,4 +15,4 @@ int main()
lcd::command(0xC0); /* Go to 2nd line*/ lcd::command(0xC0); /* Go to 2nd line*/
lcd::string("Hello World"); /* Write string on 2nd line*/ lcd::string("Hello World"); /* Write string on 2nd line*/
while(1); while(1);
} }