Skip to content

Commit

Permalink
Allow motion tracking (mpu6050) calls in effects
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Jun 21, 2024
1 parent 8cd23fb commit 1b66834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ lib_deps =
build_flags =
; -D APP=StarBase
-D PIOENV=$PIOENV
-D VERSION=24062015 ; Date and time (GMT!), update at every commit!!
-D VERSION=24062111 ; Date and time (GMT!), update at every commit!!
-D CONFIG_ASYNC_TCP_USE_WDT=0
-D LFS_THREADSAFE ; enables use of semaphores in LittleFS driver
-D STARBASE_DEVMODE
Expand Down
2 changes: 2 additions & 0 deletions src/App/LedEffects.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include "../User/UserModE131.h"
#endif

#include "../User/UserModMPU6050.h"

//utility function
float distance(float x1, float y1, float z1, float x2, float y2, float z2) {
return sqrtf((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) + (z1-z2)*(z1-z2));
Expand Down

0 comments on commit 1b66834

Please sign in to comment.