Skip to content

Commit

Permalink
fix STM example
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Dec 7, 2023
1 parent 57c74c5 commit d5509c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/AS5600_demo_STM32/AS5600_demo_STM32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// FILE: AS5600_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo

//
// tested compilation with Nucleo-64

#include "AS5600.h"
#include "Wire.h"
Expand All @@ -19,7 +20,7 @@ void setup()

Wire.setSDA(14);
Wire.setSCL(15);
Wire.begin()
Wire.begin();

as5600.begin(4); // set direction pin.
as5600.setDirection(AS5600_CLOCK_WISE); // default, just be explicit.
Expand Down

0 comments on commit d5509c7

Please sign in to comment.