Skip to content

abhimanyuarora/AS5047-spidev-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AS5047-spidev-lib

A very simple AS5047 C++ library, based on the Linux spidev module. This was written while referencing to https://github.com/milekium/spidev-lib and https://github.com/adrien-legrand/as5x47.

Currently implemented:

  • AS5047 functions:
    • readAngle()
  • Convenience functions:
    • softZero() // Takes the average of 10 samples to use as offset in getRelAngle()
    • getRelAngle()

Usage

You can directly just use and include the source files in your project, or build with CMake and generate a static library to link against.

About

A AS5047 C++ library, based on the Linux spidev module.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published