Added and tested GPIO class

This commit is contained in:
Matthias Mitscherlich
2023-01-13 11:03:16 +01:00
parent a8680dd5b5
commit aa946ff39f
7 changed files with 5425 additions and 19 deletions
+6 -4
View File
@@ -60,11 +60,12 @@ class GPIO
{
public:
bool GPIO(int number, GPIO_Direction_t direction);
GPIO(int number, GPIO_Direction_t direction);
bool GPIO_setOutput(GPIO_Value_t value);
bool SetOutput(GPIO_Value_t value);
GPIO_Value_t GetInput(void);
GPIO_Value_t GPIO_getInput(void);
private:
@@ -72,10 +73,11 @@ class GPIO
GPIO_Direction_t direction;
GPIO_Value_t value;
GPIO_Value_t value = GPIO_VALUE_LOW;
};
/** @} */
#endif /* MAIN_INC_GPIO_H_ */