Move main.cpp to test. Move lcd.cpp and lcd.h to src
This commit is contained in:
parent
2281caedfc
commit
511b5e52b0
2
makefile
2
makefile
|
@ -5,7 +5,7 @@ CC=avr-g++
|
|||
OBJCOPY=avr-objcopy
|
||||
CFLAGS=-Wall -g -mmcu=${MCU} -DF_CPU=${F_CPU} -I.
|
||||
TARGET=main
|
||||
SRCS=*.cpp
|
||||
SRCS=src/lcd.cpp test/main.cpp
|
||||
|
||||
default: build flash
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#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"
|
||||
#include "../src/lcd.h"
|
||||
|
||||
|
||||
|
||||
|
@ -15,4 +15,4 @@ int main()
|
|||
lcd::command(0xC0); /* Go to 2nd line*/
|
||||
lcd::string("Hello World"); /* Write string on 2nd line*/
|
||||
while(1);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue