Skip to content

Commit

Permalink
💥Major Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jan 24, 2025
1 parent addaa0b commit f4804c6
Show file tree
Hide file tree
Showing 185 changed files with 15,716 additions and 9,207 deletions.
118 changes: 61 additions & 57 deletions .github/workflows/arduino_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,63 +17,67 @@ jobs:
matrix:
board: ["esp32:esp32:esp32s3"]
examples:
- examples/BMA423_Accelerometer/BMA423_Accelerometer.ino
- examples/BMA423_Orientation/BMA423_Orientation.ino
- examples/BMA423_Temperature/BMA423_Temperature.ino
- examples/BMA423_Feature/BMA423_Feature.ino
- examples/CM32181_LightSensor/CM32181_LightSensor.ino
- examples/CM32181_LightSensorInterrupt/CM32181_LightSensorInterrupt.ino
- examples/DRV2605_Basic/DRV2605_Basic.ino
- examples/LTR553ALS_Sensor/LTR553ALS_Sensor.ino
- examples/PCF85063_SimpleTime/PCF85063_SimpleTime.ino
- examples/PCF8563_AlarmByUnits/PCF8563_AlarmByUnits.ino
- examples/PCF8563_SimpleTime/PCF8563_SimpleTime.ino
- examples/PCF8563_TimeLib/PCF8563_TimeLib.ino
- examples/PCF8563_TimeSynchronization/PCF8563_TimeSynchronization.ino
- examples/QMC6310_CalibrateExample/QMC6310_CalibrateExample.ino
- examples/QMC6310_CompassExample/QMC6310_CompassExample.ino
- examples/QMC6310_GetDataExample/QMC6310_GetDataExample.ino
- examples/QMC6310_GetPolarExample/QMC6310_GetPolarExample.ino
- examples/QMI8658_BlockExample/QMI8658_BlockExample.ino
- examples/QMI8658_CalibrationExample/QMI8658_CalibrationExample.ino
- examples/QMI8658_GetDataExample/QMI8658_GetDataExample.ino
- examples/QMI8658_InterruptBlockExample/QMI8658_InterruptBlockExample.ino
- examples/QMI8658_InterruptExample/QMI8658_InterruptExample.ino
- examples/QMI8658_LockingMechanismExample/QMI8658_LockingMechanismExample.ino
- examples/QMI8658_MadgwickAHRS/QMI8658_MadgwickAHRS.ino
- examples/QMI8658_PedometerExample/QMI8658_PedometerExample.ino
- examples/QMI8658_ReadFromFifoExample/QMI8658_ReadFromFifoExample.ino
- examples/QMI8658_WakeOnMotion/QMI8658_WakeOnMotion.ino
- examples/QMI8658_WakeOnMotionCallBackExample/QMI8658_WakeOnMotionCallBackExample.ino
- examples/QMI8658_TapDetectionExample/QMI8658_TapDetectionExample.ino
- examples/QMI8658_MotionDetectionExample/QMI8658_MotionDetectionExample.ino
- examples/TouchDrv_CHSC5816_GetPoint/TouchDrv_CHSC5816_GetPoint.ino
- examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino
- examples/TouchDrv_FT3267_LilyGo_T_RGB/TouchDrv_FT3267_LilyGo_T_RGB.ino
- examples/TouchDrv_FT6232_GetPoint/TouchDrv_FT6232_GetPoint.ino
- examples/TouchDrv_GT911_GetPoint/TouchDrv_GT911_GetPoint.ino
- examples/TouchDrv_GT911_LilyGo_T_RGB/TouchDrv_GT911_LilyGo_T_RGB.ino
- examples/XL9555_ExtensionIOInterrupt/XL9555_ExtensionIOInterrupt.ino
- examples/XL9555_ExtensionIORead/XL9555_ExtensionIORead.ino
- examples/XL9555_ExtensionIOWrite/XL9555_ExtensionIOWrite.ino
- examples/XL9555_ioEvent/XL9555_ioEvent.ino
- examples/XL9555_AdjustBacklight/XL9555_AdjustBacklight.ino
- examples/AW9364_LedDriver/AW9364_LedDriver.ino
- examples/BHI260AP_6DoF/BHI260AP_6DoF.ino
- examples/BHI260AP_Orientation/BHI260AP_Orientation.ino
- examples/BHI260AP_DebugInfo/BHI260AP_DebugInfo.ino
- examples/BHI260AP_StepCounter/BHI260AP_StepCounter.ino
- examples/BHI260AP_aux_BMM150/BHI260AP_aux_BMM150.ino
- examples/BHI260AP_aux_BMM150_euler/BHI260AP_aux_BMM150_euler.ino
- examples/BHI260AP_aux_BMM150_quaternion/BHI260AP_aux_BMM150_quaternion.ino
- examples/BHI260AP_aux_BMM150_BME280/BHI260AP_aux_BMM150_BME280.ino
- examples/BHI260AP_aux_BMM150_BME280_Expand_GPIO/BHI260AP_aux_BMM150_BME280_Expand_GPIO.ino
- examples/BHI260AP_Expand_GPIO/BHI260AP_Expand_GPIO.ino
- examples/BMM150_GetDataExample/BMM150_GetDataExample.ino
- examples/TouchDrv_Interface_T_RGB/TouchDrv_Interface_T_RGB.ino
- examples/TouchDrv_CST9217_GetPoint/TouchDrv_CST9217_GetPoint.ino
- examples/TouchDrv_GT9895_GetPoint/TouchDrv_GT9895_GetPoint.ino

- examples/AW9364_LedDriver/AW9364_LedDriver.ino
- examples/BHI260AP_6DoF/BHI260AP_6DoF.ino
- examples/BHI260AP_aux_BMM150/BHI260AP_aux_BMM150.ino
- examples/BHI260AP_aux_BMM150_BME280/BHI260AP_aux_BMM150_BME280.ino
- examples/BHI260AP_aux_BMM150_BME280_Expand_GPIO/BHI260AP_aux_BMM150_BME280_Expand_GPIO.ino
- examples/BHI260AP_aux_BMM150_euler/BHI260AP_aux_BMM150_euler.ino
- examples/BHI260AP_aux_BMM150_quaternion/BHI260AP_aux_BMM150_quaternion.ino
- examples/BHI260AP_Expand_GPIO/BHI260AP_Expand_GPIO.ino
- examples/BHI260AP_Orientation/BHI260AP_Orientation.ino
- examples/BHI260AP_StepCounter/BHI260AP_StepCounter.ino
- examples/BHI260AP_UpdateFirmware/BHI260AP_UpdateFirmware.ino
- examples/BMA423_Accelerometer/BMA423_Accelerometer.ino
- examples/BMA423_Feature/BMA423_Feature.ino
- examples/BMA423_Orientation/BMA423_Orientation.ino
- examples/BMA423_Temperature/BMA423_Temperature.ino
- examples/BMM150_GetDataExample/BMM150_GetDataExample.ino
- examples/CM32181_LightSensor/CM32181_LightSensor.ino
- examples/CM32181_LightSensorInterrupt/CM32181_LightSensorInterrupt.ino
- examples/CustomCallbackTouchDrvInterface/CustomCallbackTouchDrvInterface.ino
- examples/CustomCallbackUsageExamples/CustomCallbackUsageExamples.ino
- examples/DRV2605_Basic/DRV2605_Basic.ino
- examples/BQ27220_GaugeExample/BQ27220_GaugeExample.ino
- examples/LTR553ALS_Sensor/LTR553ALS_Sensor.ino
- examples/PCF85063_AlarmByUnits/PCF85063_AlarmByUnits.ino
- examples/PCF85063_ClockOutput/PCF85063_ClockOutput.ino
- examples/PCF85063_SimpleTime/PCF85063_SimpleTime.ino
- examples/PCF8563_AlarmByUnits/PCF8563_AlarmByUnits.ino
- examples/PCF8563_ClockOutput/PCF8563_ClockOutput.ino
- examples/PCF8563_SimpleTime/PCF8563_SimpleTime.ino
- examples/PCF8563_TimeLib/PCF8563_TimeLib.ino
- examples/PCF8563_TimeSynchronization/PCF8563_TimeSynchronization.ino
- examples/QMC6310_CalibrateExample/QMC6310_CalibrateExample.ino
- examples/QMC6310_CompassExample/QMC6310_CompassExample.ino
- examples/QMC6310_GetDataExample/QMC6310_GetDataExample.ino
- examples/QMC6310_GetPolarExample/QMC6310_GetPolarExample.ino
- examples/QMI8658_BlockExample/QMI8658_BlockExample.ino
- examples/QMI8658_CalibrationExample/QMI8658_CalibrationExample.ino
- examples/QMI8658_GetDataExample/QMI8658_GetDataExample.ino
- examples/QMI8658_InterruptBlockExample/QMI8658_InterruptBlockExample.ino
- examples/QMI8658_InterruptExample/QMI8658_InterruptExample.ino
- examples/QMI8658_LockingMechanismExample/QMI8658_LockingMechanismExample.ino
- examples/QMI8658_MadgwickAHRS/QMI8658_MadgwickAHRS.ino
- examples/QMI8658_MotionDetectionExample/QMI8658_MotionDetectionExample.ino
- examples/QMI8658_PedometerExample/QMI8658_PedometerExample.ino
- examples/QMI8658_ReadFromFifoExample/QMI8658_ReadFromFifoExample.ino
- examples/QMI8658_TapDetectionExample/QMI8658_TapDetectionExample.ino
- examples/QMI8658_WakeOnMotion/QMI8658_WakeOnMotion.ino
- examples/QMI8658_WakeOnMotionCallBackExample/QMI8658_WakeOnMotionCallBackExample.ino
- examples/SensorWireHelper/SensorWireHelper.ino
- examples/TouchDrvInterface_Example/TouchDrvInterface_Example.ino
- examples/TouchDrv_CHSC5816_GetPoint/TouchDrv_CHSC5816_GetPoint.ino
- examples/TouchDrv_CST9217_GetPoint/TouchDrv_CST9217_GetPoint.ino
- examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino
- examples/TouchDrv_FT6232_GetPoint/TouchDrv_FT6232_GetPoint.ino
- examples/TouchDrv_GT911_GetPoint/TouchDrv_GT911_GetPoint.ino
- examples/TouchDrv_GT9895_GetPoint/TouchDrv_GT9895_GetPoint.ino
- examples/XL9555_AdjustBacklight/XL9555_AdjustBacklight.ino
- examples/XL9555_ExtensionIOInterrupt/XL9555_ExtensionIOInterrupt.ino
- examples/XL9555_ExtensionIORead/XL9555_ExtensionIORead.ino
- examples/XL9555_ExtensionIOWrite/XL9555_ExtensionIOWrite.ino
- examples/XL9555_ioEvent/XL9555_ioEvent.ino
env:
BOARD: ${{ matrix.board }}
EXAMPLES: ${{matrix.examples}}
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/esp-idf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
push:
paths:
- "src/**"
- "examples/ESP_IDF_TouchDrv_Example/**"
- "examples/ESP_IDF_TouchDrvExample/**"
- "examples/ESP_IDF_SensorExamples/**"
- ".github/workflows/esp-idf.yml"

jobs:
Expand All @@ -21,9 +22,18 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build esp-idf examples
- name: Export ESP-IDF environment variables
shell: bash
run: . ${IDF_PATH}/export.sh
- name: Build ESP_IDF_TouchDrvExample
shell: bash
run: |
cd $GITHUB_WORKSPACE ;
cd examples/ESP_IDF_TouchDrvExample
idf.py build
- name: Build ESP_IDF_SensorExamples
shell: bash
run: |
. ${IDF_PATH}/export.sh
cd examples/ESP_IDF_TouchDrv_Example
cd $GITHUB_WORKSPACE ;
cd examples/ESP_IDF_SensorExamples
idf.py build
118 changes: 61 additions & 57 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,63 +16,67 @@ jobs:
strategy:
matrix:
example:
- examples/BMA423_Accelerometer
- examples/BMA423_Orientation
- examples/BMA423_Temperature
- examples/BMA423_Feature
- examples/BHI260AP_6DoF
- examples/BHI260AP_aux_BMM150
- examples/BHI260AP_aux_BMM150_euler
- examples/BHI260AP_aux_BMM150_quaternion
- examples/BHI260AP_aux_BMM150_BME280
- examples/BHI260AP_aux_BMM150_BME280_Expand_GPIO
- examples/BHI260AP_Expand_GPIO
- examples/BHI260AP_DebugInfo
- examples/BHI260AP_Orientation
- examples/BHI260AP_StepCounter
- examples/BMM150_GetDataExample
- examples/CM32181_LightSensor
- examples/CM32181_LightSensorInterrupt
- examples/DRV2605_Basic
- examples/LTR553ALS_Sensor
- examples/PCF85063_AlarmByUnits
- examples/PCF85063_SimpleTime
- examples/PCF8563_AlarmByUnits
- examples/PCF8563_SimpleTime
- examples/PCF8563_TimeLib
- examples/PCF8563_TimeSynchronization
- examples/QMC6310_CalibrateExample
- examples/QMC6310_CompassExample
- examples/QMC6310_GetDataExample
- examples/QMC6310_GetPolarExample
- examples/QMI8658_BlockExample
- examples/QMI8658_CalibrationExample
- examples/QMI8658_GetDataExample
- examples/QMI8658_InterruptBlockExample
- examples/QMI8658_InterruptExample
- examples/QMI8658_LockingMechanismExample
- examples/QMI8658_MadgwickAHRS
- examples/QMI8658_PedometerExample
- examples/QMI8658_ReadFromFifoExample
- examples/QMI8658_WakeOnMotion
- examples/QMI8658_WakeOnMotionCallBackExample
- examples/QMI8658_TapDetectionExample
- examples/QMI8658_MotionDetectionExample
- examples/TouchDrv_CHSC5816_GetPoint
- examples/TouchDrv_CST9217_GetPoint
- examples/TouchDrv_CSTxxx_GetPoint
- examples/TouchDrv_FT3267_LilyGo_T_RGB
- examples/TouchDrv_FT6232_GetPoint
- examples/TouchDrv_GT911_GetPoint
- examples/TouchDrv_GT911_LilyGo_T_RGB
- examples/TouchDrv_Interface_T_RGB
- examples/TouchDrv_GT9895_GetPoint
- examples/XL9555_ExtensionIOInterrupt
- examples/XL9555_ExtensionIORead
- examples/XL9555_ExtensionIOWrite
- examples/XL9555_ioEvent
- examples/XL9555_AdjustBacklight
- examples/AW9364_LedDriver
- examples/AW9364_LedDriver
- examples/BHI260AP_6DoF
- examples/BHI260AP_Expand_GPIO
- examples/BHI260AP_Orientation
- examples/BHI260AP_StepCounter
- examples/BHI260AP_UpdateFirmware
- examples/BHI260AP_aux_BMM150
- examples/BHI260AP_aux_BMM150_BME280
- examples/BHI260AP_aux_BMM150_BME280_Expand_GPIO
- examples/BHI260AP_aux_BMM150_euler
- examples/BHI260AP_aux_BMM150_quaternion
- examples/BMA423_Accelerometer
- examples/BMA423_Feature
- examples/BMA423_Orientation
- examples/BMA423_Temperature
- examples/BMM150_GetDataExample
- examples/CM32181_LightSensor
- examples/CM32181_LightSensorInterrupt
- examples/CustomCallbackTouchDrvInterface
- examples/CustomCallbackUsageExamples
- examples/DRV2605_Basic
- examples/BQ27220_GaugeExample
- examples/LTR553ALS_Sensor
- examples/PCF85063_AlarmByUnits
- examples/PCF85063_ClockOutput
- examples/PCF85063_SimpleTime
- examples/PCF8563_AlarmByUnits
- examples/PCF8563_ClockOutput
- examples/PCF8563_SimpleTime
- examples/PCF8563_TimeLib
- examples/PCF8563_TimeSynchronization
- examples/QMC6310_CalibrateExample
- examples/QMC6310_CompassExample
- examples/QMC6310_GetDataExample
- examples/QMC6310_GetPolarExample
- examples/QMI8658_BlockExample
- examples/QMI8658_CalibrationExample
- examples/QMI8658_GetDataExample
- examples/QMI8658_InterruptBlockExample
- examples/QMI8658_InterruptExample
- examples/QMI8658_LockingMechanismExample
- examples/QMI8658_MadgwickAHRS
- examples/QMI8658_MotionDetectionExample
- examples/QMI8658_PedometerExample
- examples/QMI8658_ReadFromFifoExample
- examples/QMI8658_TapDetectionExample
- examples/QMI8658_WakeOnMotion
- examples/QMI8658_WakeOnMotionCallBackExample
- examples/SensorWireHelper
- examples/TouchDrvInterface_Example
- examples/TouchDrv_CHSC5816_GetPoint
- examples/TouchDrv_CST9217_GetPoint
- examples/TouchDrv_CSTxxx_GetPoint
- examples/TouchDrv_FT6232_GetPoint
- examples/TouchDrv_GT911_GetPoint
- examples/TouchDrv_GT9895_GetPoint
- examples/XL9555_AdjustBacklight
- examples/XL9555_ExtensionIOInterrupt
- examples/XL9555_ExtensionIORead
- examples/XL9555_ExtensionIOWrite
- examples/XL9555_ioEvent

steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 11 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
set(src_dirs ./src
./src/touch
./src/platform)
./src/platform
./src/bosch
./src/bosch/BMM150
./src/bosch/common
)
set(include_dirs ./src
./src/REG
./src/touch
./src/platform)
./src/platform
./src/bosch
./src/bosch/firmware
./src/bosch/BMM150
./src/bosch/common)

idf_component_register(SRC_DIRS ${src_dirs}
INCLUDE_DIRS ${include_dirs}
REQUIRES esp_timer esp_driver_gpio driver)
61 changes: 2 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
```bash
_____ _ _ _
/ ___| | | (_)| |
\ `--. ___ _ __ ___ ___ _ __ | | _ | |__
`--. \ / _ \| '_ \ / __| / _ \ | '__|| | | || '_ \
/\__/ /| __/| | | |\__ \| (_) || | | |____| || |_) |
\____/ \___||_| |_||___/ \___/ |_| \_____/|_||_.__/
··· ···
> Commonly used I2C , SPI device multi-platform libraries

```
<center><img src="extras/images/SensroLib.jpg" width="80%" height="30%"></center>


[![Build esp-idf](https://github.com/lewisxhe/SensorLib/actions/workflows/esp-idf.yml/badge.svg)](https://github.com/lewisxhe/SensorLib/actions/workflows/esp-idf.yml)
[![Arduino CI](https://github.com/lewisxhe/SensorLib/actions/workflows/arduino_ci.yml/badge.svg)](https://github.com/lewisxhe/SensorLib/actions/workflows/arduino_ci.yml)
Expand All @@ -22,55 +14,6 @@
[![STAR](https://img.shields.io/github/stars/lewisxhe/SensorsLib)](https://github.com/lewisxhe/SensorsLib/stargazers)
[![releases](https://img.shields.io/github/release/lewisxhe/SensorsLib)](https://github.com/lewisxhe/SensorLib/releases)

## RTC
![PCF8563](https://img.shields.io/badge/PCF8563-GREEN)
![PCF85063](https://img.shields.io/badge/PCF85063-GREEN)
![HYM8563](https://img.shields.io/badge/HYM8563-GREEN)
## Motion Sensor
![QMI8658](https://img.shields.io/badge/QMI8658-blue)
![BMM150](https://img.shields.io/badge/BMM150-blue)
![QMC6310](https://img.shields.io/badge/QMC6310-blue)
![BMA423](https://img.shields.io/badge/BMA423-blue)
![BHI260AP](https://img.shields.io/badge/BHI260AP-blue)
## GPIO Expansion
![XL9555](https://img.shields.io/badge/XL9555-yellow)
![XL9535](https://img.shields.io/badge/XL9535-yellow)
## Haptic Driver
![DRV2605](https://img.shields.io/badge/DRV2605-teal)
## Light Sensor
![CM32181](https://img.shields.io/badge/CM32181-brown)
![LTR553](https://img.shields.io/badge/LTR553-brown)
## Touchpad
![FT5206](https://img.shields.io/badge/FT5206-red)
![FT6206](https://img.shields.io/badge/FT6206-red)
![FT6236](https://img.shields.io/badge/FT6236-red)
![FT3267](https://img.shields.io/badge/FT3267-red)
![CST816S](https://img.shields.io/badge/CST816S-red)
![CST816D](https://img.shields.io/badge/CST816D-red)
![CST816T](https://img.shields.io/badge/CST816T-red)
![CST820](https://img.shields.io/badge/CST820-red)
![CST226SE](https://img.shields.io/badge/CST226SE-red)
![CHSC5816](https://img.shields.io/badge/CHSC5816-red)
![GT911](https://img.shields.io/badge/GT911-red)
![CST9217](https://img.shields.io/badge/CST9217-red)
![CST9220](https://img.shields.io/badge/CST9220-red)
![GT9895](https://img.shields.io/badge/GT9895-red)
## LedDriver
![AW9364](https://img.shields.io/badge/AW9364-pink)
Support list:

| Sensor | Description | I2C | SPI |
Expand Down
Loading

0 comments on commit f4804c6

Please sign in to comment.