From da49ff88e61ac6ea5f2b54cd4ca90ff498223ae7 Mon Sep 17 00:00:00 2001 From: KTOWN Date: Thu, 31 Jan 2013 12:58:03 +0100 Subject: [PATCH] Removed writeCmd --- Adafruit_TSL2561.cpp | 16 ---------------- Adafruit_TSL2561.h | 1 - 2 files changed, 17 deletions(-) diff --git a/Adafruit_TSL2561.cpp b/Adafruit_TSL2561.cpp index 892cfe8..6b8cf77 100644 --- a/Adafruit_TSL2561.cpp +++ b/Adafruit_TSL2561.cpp @@ -29,22 +29,6 @@ /* PRIVATE FUNCTIONS */ /*========================================================================*/ -/**************************************************************************/ -/*! - @brief Sends a single command byte over I2C -*/ -/**************************************************************************/ -void Adafruit_TSL2561::writeCmd (uint8_t cmd) -{ - Wire.beginTransmission(_addr); - #if ARDUINO >= 100 - Wire.write(cmd); - #else - Wire.send(cmd); - #endif - Wire.endTransmission(); -} - /**************************************************************************/ /*! @brief Writes a register and an 8 bit value over I2C diff --git a/Adafruit_TSL2561.h b/Adafruit_TSL2561.h index 7b921c9..e63f42f 100644 --- a/Adafruit_TSL2561.h +++ b/Adafruit_TSL2561.h @@ -195,7 +195,6 @@ class Adafruit_TSL2561 : public Adafruit_Sensor { void enable (void); void disable (void); - void writeCmd (uint8_t cmd); void write8 (uint8_t reg, uint32_t value); uint8_t read8 (uint8_t reg); uint16_t read16 (uint8_t reg);