You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TermApp/app/src/main/cpp/GPIOControl.h

23 lines
394 B
C

//
// Created by Matthew on 2023/12/27.
//
#ifndef MICROPHOTO_GPIOCONTROL_H
#define MICROPHOTO_GPIOCONTROL_H
class GpioControl
{
public:
int exp(int gpio);
int setDirection(int gpio, int direction);
int readStatus(int gpio);
int writeStatus(int gpio, int value);
int unexp(int gpio);
static bool EnableGpio(int gpio, bool en);
};
#endif //MICROPHOTO_GPIOCONTROL_H