mirror of
https://github.com/adafruit/Adafruit_TSL2561.git
synced 2025-08-01 01:44:27 +02:00
Removed writeCmd
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user