Teademia 543afc9ff9 Implement of Rasp GPIO Input read
Import libwringpi and read handbutton input
2023-11-21 21:22:47 +08:00

35 lines
866 B
C++

#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QObject>
#include"gpiodetect.h"
#include"gpioinit.h"
/******************************************************************************
* Copyright 2020-xxxx xxx Co., Ltd.
* All right reserved. See COPYRIGHT for detailed Information.
*
* @file controller.h
* @brief This class is developed for init and detect the input from gpio
*
* @author teademia@.gmail
* @date 2023/11/21
* @history
*****************************************************************************/
class Controller : public QObject
{
Q_OBJECT
public:
explicit Controller(QObject *parent = nullptr);
private:
gpiodetect * GPIODetect;
gpioInit * GPIOInit;
signals:
private slots:
void GPIO_HIGH(int pin); //Deal with High Signal
void GPIO_LOW(int pin);
};
#endif // CONTROLLER_H