From 689f3e6c4bebd6cea17045ca3c074307457a4598 Mon Sep 17 00:00:00 2001 From: wolfv6 Date: Wed, 13 Jul 2016 17:58:50 -0600 Subject: [PATCH] rename LED_PinNumber to LED_uC --- src/LED_PinNumber.cpp | 11 ----------- src/LED_uC.cpp | 11 +++++++++++ src/{LED_PinNumber.h => LED_uC.h} | 10 +++++----- 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 src/LED_PinNumber.cpp create mode 100644 src/LED_uC.cpp rename src/{LED_PinNumber.h => LED_uC.h} (50%) diff --git a/src/LED_PinNumber.cpp b/src/LED_PinNumber.cpp deleted file mode 100644 index 452801b..0000000 --- a/src/LED_PinNumber.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "LED_PinNumber.h" - -void LED_PinNumber::on() -{ - digitalWrite(pin, HIGH); -} - -void LED_PinNumber::off() -{ - digitalWrite(pin, LOW); -} diff --git a/src/LED_uC.cpp b/src/LED_uC.cpp new file mode 100644 index 0000000..b43b3c7 --- /dev/null +++ b/src/LED_uC.cpp @@ -0,0 +1,11 @@ +#include "LED_uC.h" + +void LED_uC::on() +{ + digitalWrite(pin, HIGH); +} + +void LED_uC::off() +{ + digitalWrite(pin, LOW); +} diff --git a/src/LED_PinNumber.h b/src/LED_uC.h similarity index 50% rename from src/LED_PinNumber.h rename to src/LED_uC.h index 5dc8301..f02050e 100644 --- a/src/LED_PinNumber.h +++ b/src/LED_uC.h @@ -1,18 +1,18 @@ -#ifndef LED_PINNUMBER_H -#define LED_PINNUMBER_H +#ifndef LED_UC_H +#define LED_UC_H #include #include #include -/* A LED_PinNumber object is an Aduino pin that is used to power an LED on and off. +/* A LED_uC object is an Aduino pin that is used to power an LED on and off. */ -class LED_PinNumber: public LED +class LED_uC: public LED { private: const uint8_t pin; public: - LED_PinNumber(const uint8_t pin): pin(pin) + LED_uC(const uint8_t pin): pin(pin) { pinMode(pin, OUTPUT); }