Added first code parts

This commit is contained in:
Matthias Mitscherlich
2023-01-12 20:48:45 +01:00
parent ae04a540bc
commit a8680dd5b5
2 changed files with 37 additions and 11 deletions
+10 -1
View File
@@ -17,8 +17,11 @@
// Include files
// --------------------------------------------------------------------------------------------------------------------
#include "driver/gpio.h"
#include "gpio.h"
// --------------------------------------------------------------------------------------------------------------------
// Constant and macro definitions
// --------------------------------------------------------------------------------------------------------------------
@@ -47,7 +50,13 @@
// --------------------------------------------------------------------------------------------------------------------
bool GPIO::GPIO(int number, GPIO_Direction_t direction)
{
this->number = number;
this->direction = direction;
return true;
}