Skip to content

Reading a LIS3DH accelerometer with a Raspberry Pi using SPI

License

Notifications You must be signed in to change notification settings

ealang/lis3dh-spi-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lis3dh-sandbox

C code to interface with a lis3dh accelerometer over SPI using the Linux spidev driver. It has been tested on a Raspberry Pi.

This code was written as a starting point for a specific project and does not expose many of the lis3dh options. Any PRs are welcome, however.

To build and run:

make && ./main

License

This program was derived from spidev_test.c.

About

Reading a LIS3DH accelerometer with a Raspberry Pi using SPI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published