Merge branch 'master' of github.com:swinginbird/flippr-code
This commit is contained in:
@@ -11,7 +11,6 @@ set(LIB_DIR lib)
|
||||
set(DEFAULT_BUILD_TYPE DEBUG)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
SET(DBoost_NO_BOOST_CMAKE=ON)
|
||||
|
||||
IF(NOT_PI)
|
||||
add_definitions(-DNOT_PI)
|
||||
@@ -86,6 +85,8 @@ endif(Boost_FOUND)
|
||||
|
||||
##################### WIRING_PI ##########################
|
||||
find_library(wiringPi_LIB wiringPi)
|
||||
|
||||
add_definitions(-DNO_WIRING_PI)
|
||||
if(NOT wiringPi_LIB)
|
||||
message(WARNING "Could not find wiringPi library, used testing wiring pi lib instead.")
|
||||
add_definitions(-DNO_WIRING_PI)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
static int wiringPiSetup()
|
||||
{
|
||||
std::cout << "WiringPiSetup() called" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void pinMode(int pin, int mode)
|
||||
@@ -23,6 +24,7 @@ void pinMode(int pin, int mode)
|
||||
int digitalRead(int pin)
|
||||
{
|
||||
std::cout << "Reading pin " << pin << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void digitalWrite(int pin, int value)
|
||||
@@ -34,6 +36,7 @@ void digitalWrite(int pin, int value)
|
||||
int mcp23017Setup(const int pinBase, const int i2cAddress)
|
||||
{
|
||||
std::cout << "mcp23017Setup called with pinBase " << pinBase << " and i2cAddress " << i2cAddress << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user