A multi-platform sensor driver library for Arduino / PlatformIO / ESP-IDF.
--- ### Highlights - One library for **Arduino / PlatformIO / ESP-IDF** - Supports **I2C** and **SPI** devices - A collection of ready-to-run examples under `examples/` --- ## Contents - [Contents](#contents) - [Installation](#installation) - [Arduino IDE](#arduino-ide) - [PlatformIO](#platformio) - [ESP-IDF](#esp-idf) - [Examples](#examples) - [Support list](#support-list) - [Notes](#notes) - [License](#license) - [Third-party licenses](#third-party-licenses) ## Installation ### Arduino IDE **Option A: Install from Library Manager (recommended)** 1. Open Arduino IDE 2. Go to `Tools` → `Manage Libraries...` 3. Search for **SensorLib** 4. Click **Install** 5. Restart Arduino IDE if needed **Option B: Install from ZIP** 1. GitHub page → `Code` → `Download ZIP` 2. Arduino IDE → `Sketch` → `Include Library` → `Add .ZIP Library...` 3. Select the downloaded ZIP file 4. Restart Arduino IDE if the library does not appear immediately **Option C: Install with Git (manual)** 1. Clone this repository into your Arduino libraries folder: - Windows: `Documents/Arduino/libraries/` - macOS: `~/Documents/Arduino/libraries/` - Linux: `~/Arduino/libraries/` 2. Folder name should be `SensorLib` 3. Restart Arduino IDE ### PlatformIO **Option A: Install from PlatformIO Registry (recommended)** Add to your `platformio.ini`: ```ini [env:your_env] platform = espressif32 board = esp32dev framework = arduino lib_deps = lewisxhe/SensorLib@^0.4.0 ``` **Option B: Install from GitHub (latest)** ```ini [env:your_env] platform = espressif32 board = esp32dev framework = arduino lib_deps = https://github.com/lewisxhe/SensorLib.git ``` **Option C: Put it into `lib/` (local library)** 1. Copy/clone this repository into your PlatformIO project folder: - `