Capacitive Sensors Library Errors in the console

Hi! I'm using capacitive sensors library by Paul Bagder v.0.5.1 and my console writes these error messages with arduino uno r4 minima. How could I solve it?

In file included from /Users/ilia_viazov/Downloads/ArduinoCapactiveTouch-main/CapTouch_2Leds/CapTouch_2Leds.ino:14:0:
/Users/ilia_viazov/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:222:2: error: 'IO_REG_TYPE' does not name a type
  IO_REG_TYPE sBit;   // send pin's ports and bitmask
  ^~~~~~~~~~~
/Users/ilia_viazov/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:223:11: error: 'IO_REG_TYPE' does not name a type
  volatile IO_REG_TYPE *sReg;
           ^~~~~~~~~~~
/Users/ilia_viazov/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:224:2: error: 'IO_REG_TYPE' does not name a type
  IO_REG_TYPE rBit;    // receive pin's ports and bitmask
  ^~~~~~~~~~~
/Users/ilia_viazov/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:225:11: error: 'IO_REG_TYPE' does not name a type
  volatile IO_REG_TYPE *rReg;
           ^~~~~~~~~~~

exit status 1

Compilation error: exit status 1

I think there should be a new version of the library for Arduino UNO 4.

Have a look at this thread
https://forum.arduino.cc/t/capacitivesensor-cant-compile-with-zero/352466

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.