From bd2ff91a09621d912c09b5ec229cc037faaf8ca9 Mon Sep 17 00:00:00 2001 From: Leandre Gohy Date: Tue, 30 Dec 2014 20:17:17 +0100 Subject: [PATCH] Update documentation & changelog --- CHANGELOG.md | 7 ++++++- DOCUMENTATION.md | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c75c049..56bee6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # CHANGELOG -## v2.0.0 *[not released yet]* +## v2.1.0 *[not released yes]* + * **Update:** libWiringPi to [custom][nekuz0r-libWiringPi] v2.21 `nekuz0r` + * **Add:** raspberry pi A+ support `nekuz0r` + +## v2.0.0 *[Jan 1 2015]* * **Update:** libWiringPi to [custom][nekuz0r-libWiringPi] v2.20 `nekuz0r` * **Update:** split source code (based on libWiringPi hierarchy) `nekuz0r` * **Update:** better types check `nekuz0r` @@ -32,6 +36,7 @@ * **Add:** piGlow support `nekuz0r` * **Add:** piNes support `nekuz0r` * **Add:** tcs34725 support `nekuz0r` + * **Add:** dac7678 support `nekuz0r` * **Fictitious:** this release eats Pi(e)s :) ## v1.1.1 *[Jul 4 2014]* diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 6a83066..b1548c6 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -15,6 +15,7 @@ * [Soft Servo](#soft-servo) * [Soft Tone](#soft-tone) * [Extensions](#extensions) + * [dac7678](#dac7678) * [drcSerial](#drcserial) * [max31855](#max31855) * [max5322](#max5322) @@ -695,6 +696,28 @@ The tone will be played until you set the frequency to 0. ## Extensions +### dac7678 + +12-Bit octal-channel DAC with 2.5V internal reference (I2C) + +*Datasheet*: http://www.ti.com/lit/ds/sbas493c/sbas493c.pdf + +#### dac7678Setup(pinBase, i2cAddress, vrefMode) + >= 2.0.0 + +`state` can be one of the following value: + +* `DAC7678_VREF_MODE_STATIC_ON` + >= 2.0.0 +* `DAC7678_VREF_MODE_STATIC_OFF` + >= 2.0.0 +* `DAC7678_VREF_MODE_FLEXIBLE_ON` + >= 2.0.0 +* `DAC7678_VREF_MODE_FLEXIBLE_ALWAYS_ON` + >= 2.0.0 +* `DAC7678_VREF_MODE_FLEXIBLE_ALWAYS_OFF` + >= 2.0.0 + ### drcSerial #### drcSetupSerial(pinBase, numPins, device, baudrate) @@ -1080,10 +1103,18 @@ Color light-to-digital converter with IR filter #### tcs34725Setup(i2cAddress, integrationTime, gain) >= 2.0.0 +Initialize the device and returns the assigned id. +Don't forget to call `tcs34725Enable`, the device is in power sleep mode after initialization. + #### tcs34725ReadRGBC(id) >= 2.0.0 -Read the raw red, green, blue and clear channel values +Read the raw red, green, blue and clear channel values (0 - 255) + +#### tcs34725ReadHSV(id) + >= 2.0.0 + +Returns the cylindrical-coordinate representation of the sensor red, green and blue channels. #### tcs34725GetCorrelatedColorTemperature(r, g, b) >= 2.0.0