Merge branch 'master' of github.com:swinginbird/flippr-code

This commit is contained in:
Johannes Wendel
2019-09-13 11:17:24 +02:00
5 changed files with 46 additions and 5 deletions

View File

@@ -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)

View File

@@ -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;
}