Commit Graph

190 Commits

Author SHA1 Message Date
Yoshio HANAWA c2689effd9 Initial support for SHT2x Temperature/Humidity sensor driver
Signed-off-by: Yoshio HANAWA <y@hnw.jp>
2020-06-21 16:34:44 +02:00
Kevin Lutzer 64ab6f6b8f build out the ccs811 driver 2019-05-22 11:34:39 +02:00
npotts bdca7a67c9 Adde unit tests for TH02 & Minor improvement
- Added ability to change sample resolution
- Added unit tests for TH02Driver.  The way the functions are written,
it will be hard to get a fully working .Sample() coverage with my
limited understanding of gobot's testing API.  The chip is rather needy,
and each sample requires multiple read and write steps, so getting both
read and write for 2 independant measurements it a little over my head
without some more code viewing.

Id rather get this checked in and think of a better way to do this.
Otherwise, this does test the functionality

Signed-off-by: npotts <npotts@users.noreply.github.com>
2019-05-22 11:34:39 +02:00
npotts 1d6b33a351 More reworking
- Added ability to add heating profile
- waitForReady now takes a variable timeout value
- Added ability to change the sample accuracy
2019-05-22 11:34:39 +02:00
npotts b1825f2e90 Added rudiementary support for TH02 Grove Sensor
This commit adds basic support for a TH02 based Grove Sensor which is
silkscreened as

  Temperature&Humidity Sensor (High-Accuracy & Mini ) v1.0

https://www.seeedstudio.com/Grove-Temperature-Humidity-Sensor-High-Accuracy-Min-p-1921.html

This is a modified variant of a SHT2* driver, and still needs some
changes to be more useable.  It is written to assume you want to use the
High Precisions (slow sample rate)

Signed-off-by: npotts <npotts@users.noreply.github.com>
2019-05-22 11:34:39 +02:00
Ron Evans 518f4e921f grovepi: add mutex to control transactionality of the device communication
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2019-05-22 11:34:39 +02:00
Ulises Flynn eb0a5ffa08 add 128x32 and 96x16 sizes to the i2c ssd1306 driver 2019-05-22 11:34:39 +02:00
Ron Evans b3574b310f i2c: update PCA9685 driver to use same protocol as Adafruit Python lib
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2019-05-22 11:34:39 +02:00
Ron Evans 37b157c6ac docs: add GrovePi to README
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-23 18:07:08 +02:00
Ron Evans 46dab20a2d i2c: add commands to JHD1313MDriver
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-15 12:25:07 +02:00
Ron Evans eb7c7c5689 i2c: add commands to PCA9685Driver
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-15 12:05:10 +02:00
Ron Evans 80dccb3e95 i2c: improve godocs for PCA9685
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-15 11:25:57 +02:00
Ron Evans d2cbfe6167 i2c: mention that GrovePi requires running firmware 1.3.0
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-15 11:00:38 +02:00
Ron Evans 1e9ebd1cc6 i2c: add missing methods so the GrovePi fully implements the Adaptor interface
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-15 00:12:48 +02:00
Ron Evans e041a93021 i2c: update GrovePi to v1.3.0 firmware
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-14 21:15:45 +02:00
Ron Evans b8d26f0b31 i2c: implemented DigitalRead, DigitalWrite, and AnalogRead for GrovePi
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-14 10:24:07 +02:00
Ron Evans c9276f440c i2c: GrovePi digitalwrite implemented
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-14 00:21:46 +02:00
Ron Evans 425fea3b44 i2c: work in progress on GrovePi plus driver
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-13 17:03:47 +02:00
Ron Evans 6bd5dce5a2 i2c: add ShowImage() function to ssd1306 driver based on @mikegleasonjr suggestion
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-08-07 21:58:27 +02:00
ssnover95 a7d568efc2 Remove scaling of user input and add comments to SetPWMFreq function in PCA9685 i2c driver
Signed-off-by: ssnover95 <sws7379@rit.edu>
2018-07-08 20:30:03 -04:00
Ulises Flynn 88b78ff762 fix write/read gpio 2018-06-30 15:09:33 -06:00
Ulises Flynn 1e999769d7 restore driver interface test 2018-06-21 09:10:04 -06:00
Ulises Flynn 49f7c034fc fixed bug in read/write gpio code, and cleaned up some comments 2018-06-20 22:16:09 -06:00
Ron Evans c4acb468af docs: add references to new drivers for ADXL345, BH1750, and TM1638.
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-02-14 09:40:39 +01:00
Ron Evans 7ca9db598f docs: update copyright date to 2018
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-02-14 08:24:39 +01:00
Ron Evans d5e7393912
Merge pull request #481 from conejoninja/adxl345
Initial support for digital accelerometer ADXL345
2018-01-29 14:17:02 +01:00
Daniel Esteban dd53b2b837 added documentation to private structs
change filenames to lower case
2018-01-27 20:17:40 +01:00
Daniel Esteban ca043ef77b added TestADXL345DriverSetRange 2018-01-20 17:38:21 +01:00
Daniel Esteban be48fe5edb added some tests for ADXL345 2018-01-19 21:57:47 +01:00
Daniel Esteban 6ad9dfcf34 initial support for accel ADXL345 2018-01-16 10:11:50 +01:00
Daniel Esteban d4880f808f added comments for godoc
added bh1750 to readme
2018-01-12 16:26:21 +01:00
Daniel Esteban c2e6910c82 Added basic driver for BH1750 (light sensor), board GY-302 2018-01-11 20:56:23 +01:00
stan 4d1612bb57 Change init payload sequence within jhd1313m1 driver Start() func.
+ code transposed from github.com/Seeed-Studio/Grove_LCD_RGB_Backlight/blob/master/rgb_lcd.cpp.

+ this fix ensures that the 2 lcd lines are addressable.
2017-11-05 16:56:51 +01:00
deadprogram 9a6c270521 i2c: SSD1306.WithDisplayHeight() and SSD1306.WithDisplayWidth() for SSD1306 that use different display ratios
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-22 10:54:31 +02:00
ashvin 927aee595b fixed typo 2017-09-23 14:16:19 +05:30
deadprogram 0581133574 i2c: exclude sysfs oriented tests on Windows, at least for now
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-07-12 09:47:44 -06:00
deadprogram 472856310a i2c: refactor i2c interface definitions out of sysfs into i2c package
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-07-12 09:00:35 -06:00
deadprogram 1fe7469a1c i2c: improve docs and test coverage for PCA9685
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-23 20:55:28 +02:00
deadprogram 876ada9aa7 i2c: add PCA9685 servo driver to README
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-23 20:18:02 +02:00
deadprogram b2694db62b i2c: initial implementation for PCA9685 servo driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-23 20:14:24 +02:00
John Pauley 388f99e93c fix signed/unsigned bug 2017-06-15 14:04:08 +02:00
Graeme Cross 2ebbc97e49 Fixed incorrect error condition check when reading the 'ctrl_hum' register.
Expanded the BME280 unit test for TestBME280DriverStart() to support reading
from the 'ctrl_hum' register.

Signed-off-by: Graeme Cross <graeme@ceriumdesigns.com>
2017-06-15 14:04:08 +02:00
Graeme Cross 95b0fe880f Improved BME280 humidity initialisation so that it does not override existing
oversampling rates that have been set up for the ctrl_meas register.

The humidity oversampling rate is set to 1 (as per Section 3.5 of the BME280
data sheet).

Signed-off-by: Graeme Cross <graeme@ceriumdesigns.com>
2017-06-15 14:04:08 +02:00
Graeme Cross 18cfa16cc7 Issue #424: Enables humidity readings in the BME280 driver by enforcing the write to the 'ctrl_meas' register, as per Section 5.4.3 of the BME280 data sheet
Signed-off-by: Graeme Cross <graeme@ceriumdesigns.com>
2017-06-15 14:04:08 +02:00
deadprogram d6781a478a i2c: remove unused test code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
John Pauley 5f2bb180ee write config register in little endian 2017-06-15 14:04:08 +02:00
deadprogram 9d59a7c815 i2c: ensure lock of i2c bus for each individual operation
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-07 22:28:07 +02:00
John Pauley 1bce89ab32 gofmt, goimports 2017-05-05 20:57:10 -04:00
John Pauley 66f1ed09ff use real sensor data in tests 2017-05-05 20:55:10 -04:00
deadprogram b8572849a9 i2c: increase test coverage for INA3221Driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-05 09:45:21 +02:00