Change HD44780 define from RASPBERRY_PI to HD44780.
This commit is contained in:
parent
c698cfb887
commit
bf92e1013c
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@
|
||||||
#include "NullDisplay.h"
|
#include "NullDisplay.h"
|
||||||
#include "YSFControl.h"
|
#include "YSFControl.h"
|
||||||
|
|
||||||
#if defined(RASPBERRY_PI)
|
#if defined(HD44780)
|
||||||
#include "HD44780.h"
|
#include "HD44780.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -550,7 +550,7 @@ void CMMDVMHost::createDisplay()
|
||||||
LogInfo(" Brightness: %u", brightness);
|
LogInfo(" Brightness: %u", brightness);
|
||||||
|
|
||||||
m_display = new CTFTSerial(port, brightness);
|
m_display = new CTFTSerial(port, brightness);
|
||||||
#if defined(RASPBERRY_PI)
|
#if defined(HD44780)
|
||||||
} else if (type == "HD44780") {
|
} else if (type == "HD44780") {
|
||||||
unsigned int rows = m_conf.getHD44780Rows();
|
unsigned int rows = m_conf.getHD44780Rows();
|
||||||
unsigned int columns = m_conf.getHD44780Columns();
|
unsigned int columns = m_conf.getHD44780Columns();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CFLAGS = -g -O3 -Wall -std=c++0x -DRASPBERRY_PI -I/usr/local/include
|
CFLAGS = -g -O3 -Wall -std=c++0x -DHD44780 -I/usr/local/include
|
||||||
LIBS = -lwiringPi
|
LIBS = -lwiringPi
|
||||||
LDFLAGS = -g -L/usr/local/lib
|
LDFLAGS = -g -L/usr/local/lib
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue