Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AS5601.h #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AS5601.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class AS5601
char power = -1;

// coerce angle steps to supported values (8, 16, 32, …, 2048)
angleSteps = min( max( angleSteps, 8 ), 2048 );
angleSteps = constrain(angleSteps, 8, 2048);

// find dual logarithm (2^power >= angleSteps)
// (by comparing increasing powers of two with angleSteps)
Expand Down
29 changes: 29 additions & 0 deletions library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "AS5601 Library for Arduino",
"version": "0.1.0",
"description": "A wrapper for driving the cheap but great magnetic rotary sensor AS5601 over I²C on an Arduino. The library aims to offer clean high-level access to the sensor's capabilities and to provide convenience functions for common tasks. The current implementation supports only a subset of the sensor's functionality, more functions may be added in future versions.",
"keywords": "AS5601, Encoder, Rotary, Osram , AMS, 12-Bit, Programmable, Contactless",
"repository":
{
"type": "git",
"url": "https://github.com/bitfasching/AS5601.git"
},
"authors":
[
{
"name": "bitfasching ",
"url": "https://www.bitfasching.de"
},
{
"name": "George Zogopoulos-Papaliakos ",
"email": "[email protected]",
"maintainer": true
},
{
"name": "Yannik Stradmann"
}
],
"license": "BSD-3-Clause",
"frameworks": "Arduino",
"platforms": "Arduino,STM32,ESP32"
}