-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* sensor_lis2dw: add lis3dh sensor and i2c communication Signed-off-by: Luke Vuksta <[email protected]> * docs: Add lis2dw i2c and lis3dh Signed-off-by: Luke Vuksta <[email protected]> * atsamd: allow i2c rate to be 400kHz Signed-off-by: Luke Vuksta <[email protected]> * config: Add lis3dh to Duet3D 1LC sample config Signed-off-by: Luke Vuksta <[email protected]> --------- Signed-off-by: Luke Vuksta <[email protected]>
- Loading branch information
Showing
9 changed files
with
316 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Support for reading acceleration data from an LIS3DH chip | ||
# | ||
# Copyright (C) 2024 Luke Vuksta <[email protected]> | ||
# | ||
# This file may be distributed under the terms of the GNU GPLv3 license. | ||
from . import lis2dw | ||
|
||
|
||
def load_config(config): | ||
return lis2dw.LIS2DW(config, lis2dw.LIS3DH_TYPE) | ||
|
||
|
||
def load_config_prefix(config): | ||
return lis2dw.LIS2DW(config, lis2dw.LIS3DH_TYPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.