diff options
| author | Gustavoeklund01 <eklundgu@gmail.com> | 2025-10-27 20:28:29 -0300 |
|---|---|---|
| committer | Gustavoeklund01 <eklundgu@gmail.com> | 2025-10-27 20:28:29 -0300 |
| commit | 7ccab61c22fafb3bb9fa5470ff8cb46217111fe4 (patch) | |
| tree | 65a629f9f99277358e3aefc19fc43a057e079dc2 /esp/src/as5600.cpp | |
| parent | be7952f3585fe895a3309a19e14cd93f89c3ce1b (diff) | |
outros códigos
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 index e69de29..1dfdb71 100644 --- a/esp/src/as5600.cpp +++ 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(); +} |
