Skip to content

Example won't work for esp32 #1

@RSchlenker

Description

@RSchlenker

Hey Guys,
I am trying to use this library with my Esp32. The problem I experience is, that even the built already fails during the Arduino built process.

the error message is:

/home/user/Arduino/libraries/SparkFun_LIS3DH_Breakout/src/SparkFunLIS3DH.cpp: In member function 'status_t LIS3DHCore::beginCore()':
/home/user/Arduino/libraries/SparkFun_LIS3DH_Breakout/src/SparkFunLIS3DH.cpp:88:19: error: 'MSBFIRST' was not declared in this scope
SPI.setBitOrder(MSBFIRST);
^
exit status 1
Error compiling for board ESP32 Dev Module.

is MSBFIRST something like a environment variable for some boards?

Kind regards,
RSchlenker

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions