From: Cefn Hoile Date: Mon, 26 Feb 2018 23:02:47 +0000 (+0000) Subject: Copy Paste error, pasted before import. Noted BNO055 not tested. X-Git-Tag: 0.1.0~4^2~3 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/ef1cd7a840c35a78669a131fb6a22e27e39ab7c1 Copy Paste error, pasted before import. Noted BNO055 not tested. --- diff --git a/test/src/testing/universal/i2c.py b/test/src/testing/universal/i2c.py index 0a2d29c..f6eaf25 100644 --- a/test/src/testing/universal/i2c.py +++ b/test/src/testing/universal/i2c.py @@ -9,13 +9,15 @@ gc.collect() class TestBME280Interactive(TestCase): def test_read_value(self): - if not(yes_no("Is BME280 wired to SCL {} SDA {}".format(board.SCL, board.SDA))): - return # test trivially passed import board gc.collect() import adafruit_bme280 gc.collect() + + if not(yes_no("Is BME280 wired to SCL {} SDA {}".format(board.SCL, board.SDA))): + return # test trivially passed + i2c = I2C(board.SCL, board.SDA) bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c) temperature = bme280.temperature @@ -70,6 +72,8 @@ class TestBNO055Interactive(TestCase): """ Access all sensor values as per https://github.com/adafruit/Adafruit_CircuitPython_BNO055/blob/bdf6ada21e7552c242bc470d4d2619b480b4c574/examples/values.py + Note I have not successfully run this test. Possibly a hardware issue with module I have. + See https://forums.adafruit.com/viewtopic.php?f=60&t=131665 """ import board gc.collect()