diff options
| author | Luiz Gustavo Monteiro <luizgu_mreis@hotmail.com> | 2025-10-28 20:25:36 -0300 |
|---|---|---|
| committer | Luiz Gustavo Monteiro <luizgu_mreis@hotmail.com> | 2025-10-28 20:25:36 -0300 |
| commit | ba527291e59f1c4cc28b68e4fe119c44a95ab3f6 (patch) | |
| tree | 13c004df31deb7933dc84db818143c459fc87e81 /esp/src/as5600.cpp | |
| parent | 6fed254c8033bf4c67b65328474df6807c3b7eb8 (diff) | |
| parent | 7ccab61c22fafb3bb9fa5470ff8cb46217111fe4 (diff) | |
Merge branch 'master' of https://github.com/Simplesmente-O-Grupo/iot-monitoring
Diffstat (limited to 'esp/src/as5600.cpp')
| -rw-r--r-- | esp/src/as5600.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/esp/src/as5600.cpp b/esp/src/as5600.cpp new file mode 100644 index 0000000..1dfdb71 --- /dev/null +++ b/esp/src/as5600.cpp @@ -0,0 +1,13 @@ +#include <Wire.h> +#include <AS5600.h> +#include "as5600.h" + +AS5600 as5600; + +void setupAS5600() { + as5600.begin(21, 22); +} + +float lerAS5600() { + return as5600.readAngle(); +} |
