HTCC-AM02 compiler problems

Hi there,

I just received some CubeCell Module Plus modules and tried them on my customized board.

First, I followed some examples for BMP280 which works fine with the hardware.

However, if it comes to other sensor types such as MCP9808, the examples are not working anymore:

In file included from C:*\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_BusIO_Register.h:2:0,
from C:*\Documents\Arduino\libraries\Adafruit_MCP9808_Library/Adafruit_MCP9808.h:20,
from C:*\AppData\Local\Temp\arduino_modified_sketch_757173\Temperature.ino:27:
C:*\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:37:9: error: ‘BitOrder’ does not name a type
typedef BitOrder BusIOBitOrder;
^
C:*\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:67:22: error: ‘BusIOBitOrder’ has not been declared
BusIOBitOrder dataOrder = SPI_BITORDER_MSBFIRST,
^
C:*\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:72:22: error: ‘BusIOBitOrder’ has not been declared
BusIOBitOrder dataOrder = SPI_BITORDER_MSBFIRST,
^
C:*\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_SPIDevice.h:93:3: error: ‘BusIOBitOrder’ does not name a type
BusIOBitOrder _dataOrder;

Since we want to use exactly this sensor type, we need to find a workaround. What would you recommend?

Best,
-S

Regarding this problem, I started to adapt some files:

C:*\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.h
–> adapt line 24 according to
#elif defined(ESP32) || defined(ASR6501) || defined(ASR6502)

–> adapt line 55 according to
#if not defined(ASR6502)
#define BUSIO_USE_FAST_PINIO
#endif

With these changes there is no more compile error for HTCC-AM02, however, sensor communication seems not to be working yet

You can see the initialization status of this sensor.

Did the initialization succeed?