Fixes error with multiple definitions
This commit is contained in:
@@ -16,6 +16,9 @@
|
|||||||
#define INPUT_SLEEP_DURATION_NANO 800
|
#define INPUT_SLEEP_DURATION_NANO 800
|
||||||
#define INPUT_HANDLER_TIMEOUT_MILLI 2000
|
#define INPUT_HANDLER_TIMEOUT_MILLI 2000
|
||||||
|
|
||||||
|
#define DISPLAY_HIGH 0
|
||||||
|
#define DISPLAY_LOW 1
|
||||||
|
|
||||||
#define PULLDOWN false
|
#define PULLDOWN false
|
||||||
|
|
||||||
#define DISPLAY_SLEEP_TIME_MILLI 1
|
#define DISPLAY_SLEEP_TIME_MILLI 1
|
||||||
|
|||||||
@@ -2,16 +2,14 @@
|
|||||||
// Created by johannes on 17.07.19.
|
// Created by johannes on 17.07.19.
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef FLIPPR_DRIVER_WIRINGPITESTING_H
|
#ifndef FLIPPR_DRIVER_TEST_WIRINGPITESTING_H
|
||||||
#define FLIPPR_DRIVER_WIRINGPITESTING_H
|
#define FLIPPR_DRIVER_TEST_WIRINGPITESTING_H
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
#define INPUT 0
|
#define INPUT 0
|
||||||
#define OUTPUT 1
|
#define OUTPUT 1
|
||||||
#define DISPLAY_HIGH 0
|
|
||||||
#define DISPLAY_LOW 1
|
|
||||||
|
|
||||||
static int wiringPiSetup()
|
static int wiringPiSetup()
|
||||||
{
|
{
|
||||||
@@ -19,24 +17,24 @@ static int wiringPiSetup()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pinMode(int pin, int mode)
|
static void pinMode(int pin, int mode)
|
||||||
{
|
{
|
||||||
//std::cout << "Set pin " << pin << " into mode " << mode << std::endl;
|
//std::cout << "Set pin " << pin << " into mode " << mode << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
int digitalRead(int pin)
|
static int digitalRead(int pin)
|
||||||
{
|
{
|
||||||
//std::cout << "Reading pin " << pin << std::endl
|
//std::cout << "Reading pin " << pin << std::endl
|
||||||
return rand()%2 == 0 ? 1 : 0;
|
return rand()%2 == 0 ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void digitalWrite(int pin, int value)
|
static void digitalWrite(int pin, int value)
|
||||||
{
|
{
|
||||||
//std::cout << "Writing pin " << pin << " with value " << value << std::endl;
|
//std::cout << "Writing pin " << pin << " with value " << value << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int mcp23017Setup(const int pinBase, const int i2cAddress)
|
static int mcp23017Setup(const int pinBase, const int i2cAddress)
|
||||||
{
|
{
|
||||||
//std::cout << "mcp23017Setup called with pinBase " << pinBase << " and i2cAddress " << i2cAddress << std::endl;
|
//std::cout << "mcp23017Setup called with pinBase " << pinBase << " and i2cAddress " << i2cAddress << std::endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user