Exemple de test
Fork of AS5600 by
Diff: AS5600.h
- Revision:
- 0:ec69fa9832e5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AS5600.h Tue Feb 28 12:26:56 2017 +0000 @@ -0,0 +1,27 @@ + +#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 ; + }; + + +