Skip to content

Commit

Permalink
Merge pull request UncleRus#569 from QB4-dev/feature-l3gx
Browse files Browse the repository at this point in the history
feature: add l3gx gyroscope support
  • Loading branch information
UncleRus authored Aug 29, 2023
2 parents 4dd419a + f58dc95 commit 88ccff0
Show file tree
Hide file tree
Showing 19 changed files with 776 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ or [GitLab examples](https://gitlab.com/UncleRus/esp-idf-lib/tree/master/example
| Component | Description | License | Supported on | Thread safety |
|--------------------------|----------------------------------------------------------------------------------|---------|--------------------|---------------|
| **icm42670** | Driver for TDK ICM-42670-P 6-Axis IMU | ISC | esp32, esp8266, esp32s2, esp32c3 | yes |
| **l3gx** | Driver for L3Gx(L3GD20/L3G4200D) 3-axis gyroscope sensors | BSD-3-Clause | esp32, esp8266, esp32s2, esp32c3 | yes |
| **mpu6050** | Driver for MPU6000/MPU6050 6-axis MotionTracking device | MIT | esp32, esp8266, esp32s2, esp32c3 | yes |


Expand Down Expand Up @@ -313,6 +314,7 @@ or [GitLab examples](https://gitlab.com/UncleRus/esp-idf-lib/tree/master/example
- [Grupo de Pesquisa em Cultura Digital](http://gepid.upf.br/): `mpu6050`
- GrzegorzH: `ds18x20`
- [Gunar Schorcht](https://github.com/gschorcht): `bme680` `ccs811` `sht3x` `sts3x`
- [Jakub Turek](https://github.com/QB4-dev): `l3gx`
- [Jan Veeh](https://github.com/janveeh): `icm42670`
- [Jeff Rowberg](https://www.i2cdevlib.com/): `mpu6050`
- [Jose Manuel Perez](https://github.com/jmpmscorp): `lc709203f` `sgm58031`
Expand Down
22 changes: 22 additions & 0 deletions components/l3gx/.eil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: l3gx
description: Driver for L3Gx(L3GD20/L3G4200D) 3-axis gyroscope sensors
version: 1.0.0
groups:
- imu
code_owners:
- qb4-dev
depends:
- i2cdev
- log
- esp_idf_lib_helpers
thread_safe: yes
targets:
- esp32
- esp8266
- esp32s2
- esp32c3
license: BSD-3
copyrights:
- name: qb4-dev
year: 2023

5 changes: 5 additions & 0 deletions components/l3gx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
idf_component_register(
SRCS l3gx.c
INCLUDE_DIRS .
REQUIRES i2cdev log esp_idf_lib_helpers
)
26 changes: 26 additions & 0 deletions components/l3gx/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2023 Jakub Turek <[email protected]>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of itscontributors
may be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 2 additions & 0 deletions components/l3gx/component.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COMPONENT_ADD_INCLUDEDIRS = .
COMPONENT_DEPENDS = i2cdev log esp_idf_lib_helpers
Loading

0 comments on commit 88ccff0

Please sign in to comment.