Skip to content

Arduino Nano RP2040 Connect compatibility #42

@PalovskyTomas

Description

@PalovskyTomas

Description

Library does not compile on Arduino Nano RP2040 Connect.
Problem is very similar to #37 , but solution does not work for Arduino Nano RP2040 Connect.

Steps To Reproduce Problem

Download latest library. It is v0.5.1 as of today.

Hardware & Software

Board - Arduino Nano RP2040 Connect
Shields / modules used - none
Arduino IDE version - 1.8.19
Teensyduino version (if using Teensy) - none
Version info & package name (from Tools > Boards > Board Manager) - Mbed OS Nano boards
Operating system & version - Windows 10
Any other software or hardware? - none

Arduino Sketch

none.

#include <CapacitiveSensor.h>

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Errors or Incorrect Output

CapacitiveSensor.h:417:2: error: 'IO_REG_TYPE' does not name a type
  IO_REG_TYPE sBit;   // send pin's ports and bitmask
  ^~~~~~~~~~~
CapacitiveSensor.h:418:11: error: 'IO_REG_TYPE' does not name a type
  volatile IO_REG_TYPE *sReg;
           ^~~~~~~~~~~
CapacitiveSensor.h:419:2: error: 'IO_REG_TYPE' does not name a type
  IO_REG_TYPE rBit;    // receive pin's ports and bitmask
  ^~~~~~~~~~~
CapacitiveSensor.h:420:11: error: 'IO_REG_TYPE' does not name a type
  volatile IO_REG_TYPE *rReg;
           ^~~~~~~~~~~
exit status 1
Error compiling for board Arduino Nano RP2040 Connect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions