summaryrefslogtreecommitdiff
path: root/esp/src/as5600.cpp
blob: 1dfdb71adb5fa6268b7aef04bc7f123ab3ae1168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <Wire.h>
#include <AS5600.h>
#include "as5600.h"

AS5600 as5600;

void setupAS5600() {
  as5600.begin(21, 22);
}

float lerAS5600() {
  return as5600.readAngle();
}