How do you make a capacitive sensor for the nano 33 ble?

Hello

I want to make a capacitive touch sensor like in this Video.

https://www.youtube.com/watch?v=lqg_Ze_OiiY

But it does not seem to work with my Arduino nano 33 ble board.

The library that is used is CapacitiveSensor.h and its not compatible with my board.

do anyone know how to make one for my board?

Thanks in advance.

But it does not seem to work with my Arduino nano 33 ble board.

What exactly does that mean ? How dies the problem manifest itself ?

Yes, I can confirm, the lib is not compatible with nano 33 BLE. If you include the header, you get

CapacitiveSensor.h:222:2: error: 'IO_REG_TYPE' does not name a type

  IO_REG_TYPE sBit;   // send pin's ports and bitmask

  ^~~~~~~~~~~

CapacitiveSensor.h:223:11: error: 'IO_REG_TYPE' does not name a type

  volatile IO_REG_TYPE *sReg;

           ^~~~~~~~~~~

CapacitiveSensor.h:224:2: error: 'IO_REG_TYPE' does not name a type

  IO_REG_TYPE rBit;    // receive pin's ports and bitmask

  ^~~~~~~~~~~

CapacitiveSensor.h:225:11: error: 'IO_REG_TYPE' does not name a type

  volatile IO_REG_TYPE *rReg;

           ^~~~~~~~~~~

exit status 1
Error compiling for board Arduino Nano 33 BLE.

Hello, Have you solved the issue ? I had my code working on Arduino Uno, and I moved to the Nano BLE and like you I can't compile it anymore. Thanks Pascal