diff options
Diffstat (limited to 'led.cpp')
-rw-r--r-- | led.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |