summaryrefslogtreecommitdiffstats
path: root/led.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-05-08 16:21:33 +0200
committerNao Pross <naopross@thearcway.org>2018-05-08 16:21:33 +0200
commit2490b24a1ced7372e4462c60802748e426901da1 (patch)
treee7ec935869975c526d6786d1c78e0e10046ab25d /led.hpp
parentCheck if substring is empty in split(), minor fix in command parsing (diff)
downloadSAMLiquidSmoke-master.tar.gz
SAMLiquidSmoke-master.zip
Add notes, rename gpio class to gpio_pin and rename led variablesHEADmaster
Diffstat (limited to 'led.hpp')
-rw-r--r--led.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/led.hpp b/led.hpp
index 0e674bb..f266d4b 100644
--- a/led.hpp
+++ b/led.hpp
@@ -19,11 +19,11 @@ public:
RED, GREEN, YELLOW,
};
- led(gpio *pin, color color);
+ led(gpio_pin *pin, color color);
virtual ~led();
- void pin(gpio *pin);
- gpio * pin() const ;
+ void pin(gpio_pin *pin);
+ gpio_pin * pin() const ;
void get_color(color color);
color set_color() const;
@@ -37,7 +37,7 @@ public:
private:
led() {}
- gpio *_pin = nullptr;
+ gpio_pin *_pin = nullptr;
color _color;
};