From 05b99a6da08c2ba14be868daa50a27d977d8fb6e Mon Sep 17 00:00:00 2001 From: wolfv6 Date: Sat, 24 Sep 2016 20:33:23 -0600 Subject: [PATCH] update DH sketch --- src/LED_PCA9655E.cpp | 11 --------- src/LED_PCA9655E.h | 23 ------------------- .../keybrd_5b_LED_on_IOE.ino | 3 +-- 3 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 src/LED_PCA9655E.cpp delete mode 100644 src/LED_PCA9655E.h diff --git a/src/LED_PCA9655E.cpp b/src/LED_PCA9655E.cpp deleted file mode 100644 index 2838783..0000000 --- a/src/LED_PCA9655E.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "LED_PCA9655E.h" - -void LED_PCA9655E::on() -{ - refPort.write(pin, HIGH); -} - -void LED_PCA9655E::off() -{ - refPort.write(pin, LOW); -} diff --git a/src/LED_PCA9655E.h b/src/LED_PCA9655E.h deleted file mode 100644 index 1142dc9..0000000 --- a/src/LED_PCA9655E.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef LED_PCA9655E_H -#define LED_PCA9655E_H -#include -#include -#include -#include -#include - -/* A LED_PCA9655E object is an PCA9655E pin that is connected to an LED indicator light. -Input/Ouput Direction configuration are set to ouput in PortPCA9655E.begin() and PortRead_PCA9655E.begin(). -*/ -class LED_PCA9655E: public LED -{ - private: - PortPCA9655E& refPort; - const uint8_t pin; //bit pattern, IOE pin to LED - - public: - LED_PCA9655E(PortPCA9655E& refPort, const uint8_t pin) : refPort(refPort), pin(pin) {} - virtual void on(); - virtual void off(); -}; -#endif diff --git a/tutorials/keybrd_5b_LED_on_IOE/keybrd_5b_LED_on_IOE.ino b/tutorials/keybrd_5b_LED_on_IOE/keybrd_5b_LED_on_IOE.ino index a672861..210657e 100644 --- a/tutorials/keybrd_5b_LED_on_IOE/keybrd_5b_LED_on_IOE.ino +++ b/tutorials/keybrd_5b_LED_on_IOE/keybrd_5b_LED_on_IOE.ino @@ -35,7 +35,7 @@ This layout table shows left and right matrices: // ============ SPEED CONFIGURATION ============ ScanDelay scanDelay(9000); -// ================= LEFT PINS ================= +// ==================== IC ===================== // ---------------- LEFT SCANNER --------------- uint8_t readPins[] = {14, 15}; const uint8_t readPinCount = sizeof(readPins)/sizeof(*readPins); @@ -45,7 +45,6 @@ Scanner_uC scanner_L(LOW, readPins, readPinCount); // ----------------- LEFT LEDs ----------------- LED_uC LED_CapsLck(21); -// ================ RIGHT PINS ================= // --------------- RIGHT SCANNER --------------- const uint8_t IOE_ADDR = 0x20; //MCP23S17 address, all 3 ADDR pins are grounded PortMCP23S17 portA(IOE_ADDR, 0, 1<<0 | 1<<1 ); //for read and LED