Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
AS5600.h
00001 00002 #include "mbed.h" 00003 00004 00005 00006 class AS5600 { 00007 public: 00008 AS5600(PinName sda, PinName scl); 00009 float getAngleDegrees(); 00010 int getAngleAbsolute(); 00011 int getAngleRelative(); 00012 float getAngleMinMax(float angleMax); 00013 00014 int isMagnetPresent(); 00015 00016 void init(); 00017 void setZero(); 00018 00019 private: 00020 char read(char address); 00021 I2C i2c; 00022 unsigned char addresse; 00023 int relative_zero ; 00024 }; 00025 00026 00027
Generated on Thu Jul 14 2022 15:09:20 by
1.7.2