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