diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..f0e2614 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,46 @@ +Thank you for opening an issue on an Adafruit Arduino library repository. To +improve the speed of resolution please review the following guidelines and +common troubleshooting steps below before creating the issue: + +- **Do not use GitHub issues for troubleshooting projects and issues.** Instead use + the forums at http://forums.adafruit.com to ask questions and troubleshoot why + something isn't working as expected. In many cases the problem is a common issue + that you will more quickly receive help from the forum community. GitHub issues + are meant for known defects in the code. If you don't know if there is a defect + in the code then start with troubleshooting on the forum first. + +- **If following a tutorial or guide be sure you didn't miss a step.** Carefully + check all of the steps and commands to run have been followed. Consult the + forum if you're unsure or have questions about steps in a guide/tutorial. + +- **For Arduino projects check these very common issues to ensure they don't apply**: + + - For uploading sketches or communicating with the board make sure you're using + a **USB data cable** and **not** a **USB charge-only cable**. It is sometimes + very hard to tell the difference between a data and charge cable! Try using the + cable with other devices or swapping to another cable to confirm it is not + the problem. + + - **Be sure you are supplying adequate power to the board.** Check the specs of + your board and plug in an external power supply. In many cases just + plugging a board into your computer is not enough to power it and other + peripherals. + + - **Double check all soldering joints and connections.** Flakey connections + cause many mysterious problems. See the [guide to excellent soldering](https://learn.adafruit.com/adafruit-guide-excellent-soldering/tools) for examples of good solder joints. + + - **Ensure you are using an official Arduino or Adafruit board.** We can't + guarantee a clone board will have the same functionality and work as expected + with this code and don't support them. + +If you're sure this issue is a defect in the code and checked the steps above +please fill in the following fields to provide enough troubleshooting information. +You may delete the guideline and text above to just leave the following details: + +- Arduino board: **INSERT ARDUINO BOARD NAME/TYPE HERE** + +- Arduino IDE version (found in Arduino -> About Arduino menu): **INSERT ARDUINO + VERSION HERE** + +- List the steps to reproduce the problem below (if possible attach a sketch or + copy the sketch code in too): **LIST REPRO STEPS BELOW** diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..7b641eb --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,26 @@ +Thank you for creating a pull request to contribute to Adafruit's GitHub code! +Before you open the request please review the following guidelines and tips to +help it be more easily integrated: + +- **Describe the scope of your change--i.e. what the change does and what parts + of the code were modified.** This will help us understand any risks of integrating + the code. + +- **Describe any known limitations with your change.** For example if the change + doesn't apply to a supported platform of the library please mention it. + +- **Please run any tests or examples that can exercise your modified code.** We + strive to not break users of the code and running tests/examples helps with this + process. + +Thank you again for contributing! We will try to test and integrate the change +as soon as we can, but be aware we have many GitHub repositories to manage and +can't immediately respond to every request. There is no need to bump or check in +on a pull request (it will clutter the discussion of the request). + +Also don't be worried if the request is closed or not integrated--sometimes the +priorities of Adafruit's GitHub code (education, ease of use) might not match the +priorities of the pull request. Don't fret, the open source community thrives on +forks and GitHub makes it easy to keep your changes in a forked repo. + +After reviewing the guidelines above you can delete this text from the pull request. diff --git a/.github/workflows/githubci.yml b/.github/workflows/githubci.yml new file mode 100644 index 0000000..7bc32ac --- /dev/null +++ b/.github/workflows/githubci.yml @@ -0,0 +1,32 @@ +name: Arduino Library CI + +on: [pull_request, push, repository_dispatch] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-python@v1 + with: + python-version: '3.x' + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + repository: adafruit/ci-arduino + path: ci + + - name: pre-install + run: bash ci/actions_install.sh + + - name: test platforms + run: python3 ci/build_platform.py main_platforms + + - name: clang + run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r . + + - name: doxygen + env: + GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }} + PRETTYNAME : "Adafruit VL6180X Arduino Library" + run: bash ci/doxy_gen_and_deploy.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ad2bca5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: c -sudo: false - -# Blacklist -branches: - except: - - gh-pages - -env: - global: - - PRETTYNAME="Adafruit VL6180X Arduino Library" -# Optional, will default to "$TRAVIS_BUILD_DIR/Doxyfile" -# - DOXYFILE: $TRAVIS_BUILD_DIR/Doxyfile - -before_install: - - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh) - -install: - - arduino --install-library "Adafruit SSD1306","Adafruit GFX Library" - -script: - - build_main_platforms - -# Generate and deploy documentation -after_success: - - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/library_check.sh) - - source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/doxy_gen_and_deploy.sh) \ No newline at end of file diff --git a/Adafruit_VL6180X.cpp b/Adafruit_VL6180X.cpp index f547516..6f273f7 100644 --- a/Adafruit_VL6180X.cpp +++ b/Adafruit_VL6180X.cpp @@ -26,42 +26,40 @@ * */ +#include "Adafruit_VL6180X.h" #include "Arduino.h" #include -#include "Adafruit_VL6180X.h" - /**************************************************************************/ -/*! +/*! @brief Instantiates a new VL6180X class */ /**************************************************************************/ -Adafruit_VL6180X::Adafruit_VL6180X(void) { -} +Adafruit_VL6180X::Adafruit_VL6180X(void) {} /**************************************************************************/ -/*! - @brief Initializes I2C interface, checks that VL6180X is found and resets chip. +/*! + @brief Initializes I2C interface, checks that VL6180X is found and resets + chip. @param theWire Optional pointer to I2C interface, &Wire is used by default @returns True if chip found and initialized, False otherwise */ /**************************************************************************/ boolean Adafruit_VL6180X::begin(TwoWire *theWire) { _i2caddr = VL6180X_DEFAULT_I2C_ADDR; - if (! theWire) { + if (!theWire) { _i2c = &Wire; } else { _i2c = theWire; } - _i2c-> begin(); - + _i2c->begin(); if (read8(VL6180X_REG_IDENTIFICATION_MODEL_ID) != 0xB4) { return false; } - //if (read8(VL6180X_REG_SYSTEM_FRESH_OUT_OF_RESET) == 0x01) { - loadSettings(); + // if (read8(VL6180X_REG_SYSTEM_FRESH_OUT_OF_RESET) == 0x01) { + loadSettings(); //} write8(VL6180X_REG_SYSTEM_FRESH_OUT_OF_RESET, 0x00); @@ -70,88 +68,90 @@ boolean Adafruit_VL6180X::begin(TwoWire *theWire) { } /**************************************************************************/ -/*! +/*! @brief Load the settings for proximity/distance ranging */ /**************************************************************************/ void Adafruit_VL6180X::loadSettings(void) { - // load settings! - - // private settings from page 24 of app note - write8(0x0207, 0x01); - write8(0x0208, 0x01); - write8(0x0096, 0x00); - write8(0x0097, 0xfd); - write8(0x00e3, 0x00); - write8(0x00e4, 0x04); - write8(0x00e5, 0x02); - write8(0x00e6, 0x01); - write8(0x00e7, 0x03); - write8(0x00f5, 0x02); - write8(0x00d9, 0x05); - write8(0x00db, 0xce); - write8(0x00dc, 0x03); - write8(0x00dd, 0xf8); - write8(0x009f, 0x00); - write8(0x00a3, 0x3c); - write8(0x00b7, 0x00); - write8(0x00bb, 0x3c); - write8(0x00b2, 0x09); - write8(0x00ca, 0x09); - write8(0x0198, 0x01); - write8(0x01b0, 0x17); - write8(0x01ad, 0x00); - write8(0x00ff, 0x05); - write8(0x0100, 0x05); - write8(0x0199, 0x05); - write8(0x01a6, 0x1b); - write8(0x01ac, 0x3e); - write8(0x01a7, 0x1f); - write8(0x0030, 0x00); - - // Recommended : Public registers - See data sheet for more detail - write8(0x0011, 0x10); // Enables polling for 'New Sample ready' - // when measurement completes - write8(0x010a, 0x30); // Set the averaging sample period - // (compromise between lower noise and - // increased execution time) - write8(0x003f, 0x46); // Sets the light and dark gain (upper - // nibble). Dark gain should not be - // changed. - write8(0x0031, 0xFF); // sets the # of range measurements after - // which auto calibration of system is - // performed - write8(0x0040, 0x63); // Set ALS integration time to 100ms - write8(0x002e, 0x01); // perform a single temperature calibration - // of the ranging sensor - - // Optional: Public registers - See data sheet for more detail - write8(0x001b, 0x09); // Set default ranging inter-measurement - // period to 100ms - write8(0x003e, 0x31); // Set default ALS inter-measurement period - // to 500ms - write8(0x0014, 0x24); // Configures interrupt on 'New Sample - // Ready threshold event' + // load settings! + + // private settings from page 24 of app note + write8(0x0207, 0x01); + write8(0x0208, 0x01); + write8(0x0096, 0x00); + write8(0x0097, 0xfd); + write8(0x00e3, 0x00); + write8(0x00e4, 0x04); + write8(0x00e5, 0x02); + write8(0x00e6, 0x01); + write8(0x00e7, 0x03); + write8(0x00f5, 0x02); + write8(0x00d9, 0x05); + write8(0x00db, 0xce); + write8(0x00dc, 0x03); + write8(0x00dd, 0xf8); + write8(0x009f, 0x00); + write8(0x00a3, 0x3c); + write8(0x00b7, 0x00); + write8(0x00bb, 0x3c); + write8(0x00b2, 0x09); + write8(0x00ca, 0x09); + write8(0x0198, 0x01); + write8(0x01b0, 0x17); + write8(0x01ad, 0x00); + write8(0x00ff, 0x05); + write8(0x0100, 0x05); + write8(0x0199, 0x05); + write8(0x01a6, 0x1b); + write8(0x01ac, 0x3e); + write8(0x01a7, 0x1f); + write8(0x0030, 0x00); + + // Recommended : Public registers - See data sheet for more detail + write8(0x0011, 0x10); // Enables polling for 'New Sample ready' + // when measurement completes + write8(0x010a, 0x30); // Set the averaging sample period + // (compromise between lower noise and + // increased execution time) + write8(0x003f, 0x46); // Sets the light and dark gain (upper + // nibble). Dark gain should not be + // changed. + write8(0x0031, 0xFF); // sets the # of range measurements after + // which auto calibration of system is + // performed + write8(0x0040, 0x63); // Set ALS integration time to 100ms + write8(0x002e, 0x01); // perform a single temperature calibration + // of the ranging sensor + + // Optional: Public registers - See data sheet for more detail + write8(0x001b, 0x09); // Set default ranging inter-measurement + // period to 100ms + write8(0x003e, 0x31); // Set default ALS inter-measurement period + // to 500ms + write8(0x0014, 0x24); // Configures interrupt on 'New Sample + // Ready threshold event' } - /**************************************************************************/ -/*! - @brief Single shot ranging. Be sure to check the return of {@link readRangeStatus} to before using the return value! +/*! + @brief Single shot ranging. Be sure to check the return of {@link + readRangeStatus} to before using the return value! @return Distance in millimeters if valid */ /**************************************************************************/ uint8_t Adafruit_VL6180X::readRange(void) { // wait for device to be ready for range measurement - while (! (read8(VL6180X_REG_RESULT_RANGE_STATUS) & 0x01)); + while (!(read8(VL6180X_REG_RESULT_RANGE_STATUS) & 0x01)) + ; // Start a range measurement write8(VL6180X_REG_SYSRANGE_START, 0x01); // Poll until bit 2 is set - while (! (read8(VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO) & 0x04)); + while (!(read8(VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO) & 0x04)) + ; // read range in mm uint8_t range = read8(VL6180X_REG_RESULT_RANGE_VAL); @@ -162,9 +162,8 @@ uint8_t Adafruit_VL6180X::readRange(void) { return range; } - /**************************************************************************/ -/*! +/*! @brief Request ranging success/error message (retreive after ranging) @returns One of possible VL6180X_ERROR_* values */ @@ -174,9 +173,8 @@ uint8_t Adafruit_VL6180X::readRangeStatus(void) { return (read8(VL6180X_REG_RESULT_RANGE_STATUS) >> 4); } - /**************************************************************************/ -/*! +/*! @brief Single shot lux measurement @param gain Gain setting, one of VL6180X_ALS_GAIN_* @returns Lux reading @@ -190,7 +188,7 @@ float Adafruit_VL6180X::readLux(uint8_t gain) { reg &= ~0x38; reg |= (0x4 << 3); // IRQ on ALS ready write8(VL6180X_REG_SYSTEM_INTERRUPT_CONFIG, reg); - + // 100 ms integration period write8(VL6180X_REG_SYSALS_INTEGRATION_PERIOD_HI, 0); write8(VL6180X_REG_SYSALS_INTEGRATION_PERIOD_LO, 100); @@ -205,7 +203,8 @@ float Adafruit_VL6180X::readLux(uint8_t gain) { write8(VL6180X_REG_SYSALS_START, 0x1); // Poll until "New Sample Ready threshold event" is set - while (4 != ((read8(VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO) >> 3) & 0x7)); + while (4 != ((read8(VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO) >> 3) & 0x7)) + ; // read lux! float lux = read16(VL6180X_REG_RESULT_ALS_VAL); @@ -214,52 +213,49 @@ float Adafruit_VL6180X::readLux(uint8_t gain) { write8(VL6180X_REG_SYSTEM_INTERRUPT_CLEAR, 0x07); lux *= 0.32; // calibrated count/lux - switch(gain) { - case VL6180X_ALS_GAIN_1: + switch (gain) { + case VL6180X_ALS_GAIN_1: break; - case VL6180X_ALS_GAIN_1_25: + case VL6180X_ALS_GAIN_1_25: lux /= 1.25; break; - case VL6180X_ALS_GAIN_1_67: + case VL6180X_ALS_GAIN_1_67: lux /= 1.67; break; - case VL6180X_ALS_GAIN_2_5: + case VL6180X_ALS_GAIN_2_5: lux /= 2.5; break; - case VL6180X_ALS_GAIN_5: + case VL6180X_ALS_GAIN_5: lux /= 5; break; - case VL6180X_ALS_GAIN_10: + case VL6180X_ALS_GAIN_10: lux /= 10; break; - case VL6180X_ALS_GAIN_20: + case VL6180X_ALS_GAIN_20: lux /= 20; break; - case VL6180X_ALS_GAIN_40: + case VL6180X_ALS_GAIN_40: lux /= 40; break; } lux *= 100; lux /= 100; // integration time in ms - return lux; } /**************************************************************************/ -/*! +/*! @brief I2C low level interfacing */ /**************************************************************************/ - // Read 1 byte from the VL6180X at 'address' -uint8_t Adafruit_VL6180X::read8(uint16_t address) -{ +uint8_t Adafruit_VL6180X::read8(uint16_t address) { uint8_t data; _i2c->beginTransmission(_i2caddr); - _i2c->write(address>>8); + _i2c->write(address >> 8); _i2c->write(address); _i2c->endTransmission(); @@ -267,20 +263,21 @@ uint8_t Adafruit_VL6180X::read8(uint16_t address) data = _i2c->read(); #if defined(I2C_DEBUG) - Serial.print("\t$"); Serial.print(address, HEX); Serial.print(": 0x"); Serial.println(data, HEX); + Serial.print("\t$"); + Serial.print(address, HEX); + Serial.print(": 0x"); + Serial.println(data, HEX); #endif return data; } - // Read 2 byte from the VL6180X at 'address' -uint16_t Adafruit_VL6180X::read16(uint16_t address) -{ +uint16_t Adafruit_VL6180X::read16(uint16_t address) { uint16_t data; _i2c->beginTransmission(_i2caddr); - _i2c->write(address>>8); + _i2c->write(address >> 8); _i2c->write(address); _i2c->endTransmission(); @@ -288,32 +285,32 @@ uint16_t Adafruit_VL6180X::read16(uint16_t address) data = _i2c->read(); data <<= 8; data |= _i2c->read(); - + return data; } // write 1 byte -void Adafruit_VL6180X::write8(uint16_t address, uint8_t data) -{ +void Adafruit_VL6180X::write8(uint16_t address, uint8_t data) { _i2c->beginTransmission(_i2caddr); - _i2c->write(address>>8); + _i2c->write(address >> 8); _i2c->write(address); - _i2c->write(data); + _i2c->write(data); _i2c->endTransmission(); #if defined(I2C_DEBUG) - Serial.print("\t$"); Serial.print(address, HEX); Serial.print(" = 0x"); Serial.println(data, HEX); + Serial.print("\t$"); + Serial.print(address, HEX); + Serial.print(" = 0x"); + Serial.println(data, HEX); #endif } - // write 2 bytes -void Adafruit_VL6180X::write16(uint16_t address, uint16_t data) -{ +void Adafruit_VL6180X::write16(uint16_t address, uint16_t data) { _i2c->beginTransmission(_i2caddr); - _i2c->write(address>>8); + _i2c->write(address >> 8); _i2c->write(address); - _i2c->write(data>>8); + _i2c->write(data >> 8); _i2c->write(data); _i2c->endTransmission(); } diff --git a/Adafruit_VL6180X.h b/Adafruit_VL6180X.h index 062e09a..c534a65 100644 --- a/Adafruit_VL6180X.h +++ b/Adafruit_VL6180X.h @@ -23,67 +23,66 @@ //#define I2C_DEBUG -#define VL6180X_DEFAULT_I2C_ADDR 0x29 ///< The fixed I2C addres +#define VL6180X_DEFAULT_I2C_ADDR 0x29 ///< The fixed I2C addres ///! Device model identification number -#define VL6180X_REG_IDENTIFICATION_MODEL_ID 0x000 +#define VL6180X_REG_IDENTIFICATION_MODEL_ID 0x000 ///! Interrupt configuration -#define VL6180X_REG_SYSTEM_INTERRUPT_CONFIG 0x014 +#define VL6180X_REG_SYSTEM_INTERRUPT_CONFIG 0x014 ///! Interrupt clear bits -#define VL6180X_REG_SYSTEM_INTERRUPT_CLEAR 0x015 +#define VL6180X_REG_SYSTEM_INTERRUPT_CLEAR 0x015 ///! Fresh out of reset bit -#define VL6180X_REG_SYSTEM_FRESH_OUT_OF_RESET 0x016 +#define VL6180X_REG_SYSTEM_FRESH_OUT_OF_RESET 0x016 ///! Trigger Ranging -#define VL6180X_REG_SYSRANGE_START 0x018 +#define VL6180X_REG_SYSRANGE_START 0x018 ///! Trigger Lux Reading -#define VL6180X_REG_SYSALS_START 0x038 +#define VL6180X_REG_SYSALS_START 0x038 ///! Lux reading gain -#define VL6180X_REG_SYSALS_ANALOGUE_GAIN 0x03F +#define VL6180X_REG_SYSALS_ANALOGUE_GAIN 0x03F ///! Integration period for ALS mode, high byte -#define VL6180X_REG_SYSALS_INTEGRATION_PERIOD_HI 0x040 +#define VL6180X_REG_SYSALS_INTEGRATION_PERIOD_HI 0x040 ///! Integration period for ALS mode, low byte -#define VL6180X_REG_SYSALS_INTEGRATION_PERIOD_LO 0x041 +#define VL6180X_REG_SYSALS_INTEGRATION_PERIOD_LO 0x041 ///! Specific error codes -#define VL6180X_REG_RESULT_RANGE_STATUS 0x04d +#define VL6180X_REG_RESULT_RANGE_STATUS 0x04d ///! Interrupt status -#define VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO 0x04f +#define VL6180X_REG_RESULT_INTERRUPT_STATUS_GPIO 0x04f ///! Light reading value -#define VL6180X_REG_RESULT_ALS_VAL 0x050 +#define VL6180X_REG_RESULT_ALS_VAL 0x050 ///! Ranging reading value -#define VL6180X_REG_RESULT_RANGE_VAL 0x062 +#define VL6180X_REG_RESULT_RANGE_VAL 0x062 -#define VL6180X_ALS_GAIN_1 0x06 ///< 1x gain -#define VL6180X_ALS_GAIN_1_25 0x05 ///< 1.25x gain -#define VL6180X_ALS_GAIN_1_67 0x04 ///< 1.67x gain -#define VL6180X_ALS_GAIN_2_5 0x03 ///< 2.5x gain -#define VL6180X_ALS_GAIN_5 0x02 ///< 5x gain -#define VL6180X_ALS_GAIN_10 0x01 ///< 10x gain -#define VL6180X_ALS_GAIN_20 0x00 ///< 20x gain -#define VL6180X_ALS_GAIN_40 0x07 ///< 40x gain - -#define VL6180X_ERROR_NONE 0 ///< Success! -#define VL6180X_ERROR_SYSERR_1 1 ///< System error -#define VL6180X_ERROR_SYSERR_5 5 ///< Sysem error -#define VL6180X_ERROR_ECEFAIL 6 ///< Early convergence estimate fail -#define VL6180X_ERROR_NOCONVERGE 7 ///< No target detected -#define VL6180X_ERROR_RANGEIGNORE 8 ///< Ignore threshold check failed -#define VL6180X_ERROR_SNR 11 ///< Ambient conditions too high -#define VL6180X_ERROR_RAWUFLOW 12 ///< Raw range algo underflow -#define VL6180X_ERROR_RAWOFLOW 13 ///< Raw range algo overflow -#define VL6180X_ERROR_RANGEUFLOW 14 ///< Raw range algo underflow -#define VL6180X_ERROR_RANGEOFLOW 15 ///< Raw range algo overflow +#define VL6180X_ALS_GAIN_1 0x06 ///< 1x gain +#define VL6180X_ALS_GAIN_1_25 0x05 ///< 1.25x gain +#define VL6180X_ALS_GAIN_1_67 0x04 ///< 1.67x gain +#define VL6180X_ALS_GAIN_2_5 0x03 ///< 2.5x gain +#define VL6180X_ALS_GAIN_5 0x02 ///< 5x gain +#define VL6180X_ALS_GAIN_10 0x01 ///< 10x gain +#define VL6180X_ALS_GAIN_20 0x00 ///< 20x gain +#define VL6180X_ALS_GAIN_40 0x07 ///< 40x gain +#define VL6180X_ERROR_NONE 0 ///< Success! +#define VL6180X_ERROR_SYSERR_1 1 ///< System error +#define VL6180X_ERROR_SYSERR_5 5 ///< Sysem error +#define VL6180X_ERROR_ECEFAIL 6 ///< Early convergence estimate fail +#define VL6180X_ERROR_NOCONVERGE 7 ///< No target detected +#define VL6180X_ERROR_RANGEIGNORE 8 ///< Ignore threshold check failed +#define VL6180X_ERROR_SNR 11 ///< Ambient conditions too high +#define VL6180X_ERROR_RAWUFLOW 12 ///< Raw range algo underflow +#define VL6180X_ERROR_RAWOFLOW 13 ///< Raw range algo overflow +#define VL6180X_ERROR_RANGEUFLOW 14 ///< Raw range algo underflow +#define VL6180X_ERROR_RANGEOFLOW 15 ///< Raw range algo overflow ///! Class for managing connection and state to a VL6180X sensor class Adafruit_VL6180X { - public: +public: Adafruit_VL6180X(); boolean begin(TwoWire *theWire = NULL); uint8_t readRange(void); - float readLux(uint8_t gain); + float readLux(uint8_t gain); uint8_t readRangeStatus(void); - private: +private: void loadSettings(void); void write8(uint16_t address, uint8_t data); diff --git a/README.md b/README.md index a2be1de..9bb15f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Adafruit VL6180X Library [![Build Status](https://travis-ci.com/adafruit/Adafruit_VL6180X.svg?branch=master)](https://travis-ci.com/adafruit/Adafruit_VL6180X) +# Adafruit VL6180X Library [![Build Status](https://github.com/adafruit/Adafruit_VL6180X/workflows/Arduino%20Library%20CI/badge.svg)](https://github.com/adafruit/Adafruit_VL6180X/actions) diff --git a/library.properties b/library.properties index 3a9e8a6..b352126 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit_VL6180X -version=1.0.6 +version=1.0.7 author=Adafruit maintainer=adafruit sentence=Sensor driver for VL6180X Time of Flight sensor @@ -7,3 +7,4 @@ paragraph=Sensor driver for VL6180X Time of Flight sensor category=Sensors url=https://github.com/adafruit/Adafruit_VL6180X architectures=* +depends=Adafruit SSD1306, Adafruit GFX Library