From 7ccab61c22fafb3bb9fa5470ff8cb46217111fe4 Mon Sep 17 00:00:00 2001 From: Gustavoeklund01 Date: Mon, 27 Oct 2025 20:28:29 -0300 Subject: outros códigos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp/src/as5600.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'esp/src/as5600.cpp') 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 +#include +#include "as5600.h" + +AS5600 as5600; + +void setupAS5600() { + as5600.begin(21, 22); +} + +float lerAS5600() { + return as5600.readAngle(); +} -- cgit v1.2.3