Commit Graph

1807 Commits

Author SHA1 Message Date
deadprogram 94f1a6d045 aio: move test read function before event is received
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-04 10:19:53 +02:00
deadprogram f94bdf5aaf i2c: increase test coverage for Grove LCD and JHD1313M1
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-03 21:35:32 +02:00
deadprogram 34eae7f559 i2c: increase test coverage for bme280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-03 21:16:38 +02:00
deadprogram 083bf23f5b i2c: increase test coverage for bme280 and bmp280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-03 20:58:31 +02:00
deadprogram 49ce0eb71f i2c: increase test coverage for bme280 and bmp280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-03 20:09:50 +02:00
deadprogram efa01a585b Merge branch 'maruel-fast_fast' into dev 2017-04-02 23:54:29 +02:00
deadprogram 5797fdad6b test: resolve merge conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 23:52:37 +02:00
deadprogram 5987a732b9 sphero: eliminate race conditions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 23:50:07 +02:00
deadprogram dfa02a200e leap: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 22:24:34 +02:00
deadprogram c11b0d3b3c neurosky: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 22:08:10 +02:00
deadprogram fe19c2f167 firmata: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 21:13:55 +02:00
deadprogram 06671698f2 i2c: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 20:10:12 +02:00
deadprogram 210ace70fa aio: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 17:55:49 +02:00
deadprogram fe94979487 gpio: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 17:42:01 +02:00
deadprogram b6c8138551 gpio: reduce test side effects
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 17:15:45 +02:00
deadprogram d405b7a5c7 test: remove test code no longer being called
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 15:57:23 +02:00
deadprogram 62ebd67dea sysfs: address race condition from udev rules when exporting GPIO pins
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 22:07:47 +02:00
deadprogram 9fc46368a4 i2c: add bme280 and bmp280 to list of supported drivers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 13:51:36 +02:00
deadprogram 3d7bf12156 i2c: add test coverage for bme280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 13:46:37 +02:00
deadprogram e14bfb726f i2c: add test coverage for bmp280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 13:21:38 +02:00
deadprogram 821fbf272e i2c: adds Altitude() function to BMP280/BME280
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-01 10:29:57 +02:00
deadprogram 671ead7705 i2c: add BME280, BMP280 and update SSD1306 in README
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:12:38 +02:00
deadprogram bdb24109af i2c: functional bmp180 temperature/pressure and bme280 humidity
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram c573ba99ac Revert "Increased PWM frequency"
This reverts commit 899c70d6831bfd78e9e0acdd48548e30e9c464e2.
2017-03-31 23:01:10 +02:00
deadprogram 1b8a772400 i2c: BME280 readings coming in, still working on conversion functions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 633abf0751 i2c: update bme280 example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 4c573b43f4 i2c: add Humidity() to bme280 example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram f523fc6447 i2c: bmp280/bme280 raw reading in place, just need the conversions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram c9b992aaa5 i2c: add bmp280 driver, then encapsulate it with bme280 and add Humidity
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 8940824ff0 i2c: refactoring since the bme280 is not the same as the bmp180
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram 56a67a6626 i2c: ensure bmp180 returns Temperature() error, if any
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
dsockwell a772e835d9 Remove bad old bme280 driver 2017-03-31 23:01:10 +02:00
dsockwell c34bbee3c7 Humidity compensation formula input, needs verification 2017-03-31 23:01:10 +02:00
deadprogram a1ed7ad144 i2c: Placeholder method for doing humidity adjustment for BME280 support
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
deadprogram fa2b6a3ea2 i2c: WIP on adding BME280 support
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-31 23:01:10 +02:00
dsockwell 2600e69694 Works fine for a while now 2017-03-31 23:01:10 +02:00
darryl sockwell cd2ce2ff28 Some cleanup, bme280 driver works fine 2017-03-31 23:01:10 +02:00
Demo User aaa7497ca1 Increased PWM frequency 2017-03-31 23:01:10 +02:00
Ron Evans 296e2c3549 Merge pull request #400 from llonchj/feature/i2c/ssd1306
Initial ssd1306 driver implementation
2017-03-31 20:46:21 +02:00
Jordi Llonch 6ea0383918 ssd1306: added example
Signed-off-by: Jordi Llonch <llonchj@gmail.com>
2017-03-31 17:33:52 +00:00
Jordi Llonch a66cfb1580 SSD1306 Commands
Signed-off-by: Jordi Llonch <llonchj@gmail.com>
2017-03-31 15:55:33 +11:00
Jordi Llonch e6aebcec48 Initial ssd1306 driver implementation
Signed-off-by: Jordi Llonch <llonchj@gmail.com>
2017-03-31 15:05:11 +11:00
Ron Evans fc5f64f49d Merge pull request #396 from maruel/fmt
Add crude travis check for gofmt; format all sources
2017-03-28 18:15:12 +02:00
Marc-Antoine Ruel 88addd428f Add crude travis check for gofmt; format all sources
The check ensures no gofmt regression occurs. Formatting the code makes everyone happy.
2017-03-27 14:10:37 -04:00
Marc-Antoine Ruel 55eb298a9b Significantly speed up travis and make runs
- Inline ci/travis.sh into .travis.yml
- Use two go test steps instead of once for speed up
- Drop the whitelist and use all the packages as listed from $(go list ./...).
  This removes the need to do bookeeping in both .travis.yml and Makefile during
  refactoring.
- Trimmed the Makefile significantly. Removed "go test -i" as while this is
  extremely helpful when cross compiling, it doesn't help when compiling for the
  host.
- Added deps as a phony target, made this step faster. I'm not sure of the
  usefulness of this step though and would recommend to remove it.
- 'make examples' is currently broken so I didn't add it to .travis.yml.

I experimented a bit on travis with go test on another similar project, timings
for the go test step only:
- Using both -race and -coverprofile with the loop over $(go list ./...) took
  190s
- Using -coverprofile alone with the loop over $(go list ./...) took 10~11s
- Using -race ./... took 5s

It means that using one after the other takes 16~17s while running with both
flags takes 190s. A 91% speedup. Add my previous commit that cut off the test
runtime by half, the total speed will be appreciable.
2017-03-25 07:31:26 -04:00
Ron Evans 1a3c52c2aa Merge pull request #385 from erkkah/chip-pwm
Hardware PWM support for the C.H.I.P
2017-03-23 21:53:00 +01:00
Erik Agsjö 74da855ea7 Updated README
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-03-23 21:46:47 +01:00
deadprogram 678476b612 aio: additional test coverage for Analog Sensor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-23 13:18:22 +01:00
deadprogram 518a563597 aio: additional test coverage for Grove Temperature Sensor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-03-23 13:13:14 +01:00
Ron Evans f3cc685666 Merge pull request #392 from b3b/dev
Fix neurosky example
2017-03-23 11:57:18 +01:00