Added and tested GPIO class
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user