weis nimmer
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
/*
|
||||
* GPIOInterface.hpp
|
||||
*
|
||||
* Responsible for communicating with the actual GPIO hardware.
|
||||
*
|
||||
* Gets a JSON file with following style:
|
||||
* TODO
|
||||
*
|
||||
* Created on: May 6, 2018
|
||||
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
|
||||
*/
|
||||
|
||||
#ifndef SRC_UTILITIES_GPIOINTERFACE_HPP_
|
||||
#define SRC_UTILITIES_GPIOINTERFACE_HPP_
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include <../lib/wiringPi/wiringPi.h>
|
||||
#include "../lib/json/json.hpp"
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
class GPIOInterface
|
||||
{
|
||||
public:
|
||||
GPIOInterface(std::string config_path);
|
||||
~GPIOInterface();
|
||||
|
||||
void write_address();
|
||||
void read_pin();
|
||||
|
||||
public:
|
||||
// todo some mapping class interface shit that a user can ask for what is actually usable \
|
||||
something like: A has gpio interface at gpio -> gpio.input.column. just dont work with strings
|
||||
private:
|
||||
json config;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* SRC_UTILITIES_GPIOINTERFACE_HPP_ */
|
||||
Reference in New Issue
Block a user