summaryrefslogtreecommitdiffstats
path: root/led.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'led.cpp')
-rw-r--r--led.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/led.cpp b/led.cpp
index 4888d84..7cfcb0f 100644
--- a/led.cpp
+++ b/led.cpp
@@ -7,7 +7,7 @@
#include "led.hpp"
-led::led(gpio *pin, led::color color) : _pin(pin), _color(color)
+led::led(gpio_pin *pin, led::color color) : _pin(pin), _color(color)
{
_pin->set_mode(0); // output
}
@@ -18,14 +18,14 @@ led::~led()
}
-void led::pin(gpio *pin)
+void led::pin(gpio_pin *pin)
{
if (pin) {
_pin = pin;
}
}
-gpio * led::pin() const
+gpio_pin * led::pin() const
{
return _pin;
}