Exemple de test
Fork of AS5600 by
AS5600.h
- Committer:
- gr66
- Date:
- 2017-02-28
- Revision:
- 0:ec69fa9832e5
File content as of revision 0:ec69fa9832e5:
#include "mbed.h" class AS5600 { public: AS5600(PinName sda, PinName scl); float getAngleDegrees(); int getAngleAbsolute(); int getAngleRelative(); float getAngleMinMax(float angleMax); int isMagnetPresent(); void init(); void setZero(); private: char read(char address); I2C i2c; unsigned char addresse; int relative_zero ; };