Giter Site home page Giter Site logo

capacitivesensor's Introduction

capacitivesensor's People

Contributors

boriswild avatar dmadison avatar facchinm avatar fpistm avatar jonmacd avatar ladyada avatar mysterywolf avatar nseidle avatar paulstoffregen avatar sebromero avatar unicronnl avatar vks007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

capacitivesensor's Issues

Capacitive Sensor - Leonardo

Hi!
I was trying to use this library with arduino leonardo but it only works when I touch the copper foil and when it does not have isolator, otherwise it does not work. I also tried with version 4, same results. My setup uses a resistor of 10M ohm and a copper foil of 1.5x4 cm.
What am i doing wrong?. Thanks in advance

CapacitiveSensor + interrupt

I don't know if it's possible but can I use this library with an interrupt? I want to put my Arduino to sleep with the Low-power library and wake it only if a touch is detected.

does it support ESP32 board ?

I owned this board
https://www.banggood.com/ESP32-Development-Board-WiFiBluetooth-Ultra-Low-Power-Consumption-Dual-Cores-ESP-32-ESP-32S-Board-p-1109512.html

I tried to copy from demo code for testing but firmware ha built error.

#include "CapacitiveSensor.h"

CapacitiveSensor cs_4_2 = CapacitiveSensor(4, 2);

void setup() {
    cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);
    Serial.begin(9600);

}

void loop() {

    long start = millis();
    long total1 = cs_4_2.capacitiveSensor(30);

    Serial.print(millis() - start);
    Serial.print("\t");
    Serial.print(total1);
    Serial.print("\t");
    delay(10);
}

In file included from src\main.cpp:3:0:
lib\CapacitiveSensor/CapacitiveSensor.h:239:2: error: 'IO_REG_TYPE' does not name a type
IO_REG_TYPE sBit; // send pin's ports and bitmask
^
lib\CapacitiveSensor/CapacitiveSensor.h:240:11: error: 'IO_REG_TYPE' does not name a type
volatile IO_REG_TYPE *sReg;
^
lib\CapacitiveSensor/CapacitiveSensor.h:241:2: error: 'IO_REG_TYPE' does not name a type
IO_REG_TYPE rBit; // receive pin's ports and bitmask
^
lib\CapacitiveSensor/CapacitiveSensor.h:242:11: error: 'IO_REG_TYPE' does not name a type
volatile IO_REG_TYPE *rReg;

Always timeout (-2) with Wemos D1 Mini and 1MOhm resistor

I can't get a sensor reading when I use a 1MOhm resistor or above. Only < 600kOhm work but then I can only sense an absolute touch but I need to get a signal when someone is about 2 cm away from the touch sensor field.

The Wemos D1 Mini has 3.3V pins.

Does anyone know why resistors > 600k always time out? Lower resistor values work but will only detect absolute touches :-/

Arduino Nano RP2040 Connect compatibility

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.

Library and T=RC formula

Hey, I'm newbie here....
I'm about to make a capacitance sensor, but I don't know what the output from your library, is it directly microFarad output or I have to write T=R*C formula in my code again?
Thanks a lot for your help :)

Did it support Intel Galileo?

I got this error:

Arduino: 1.6.9 (Mac OS X), Board: "Intel® Galileo"

In file included from /Users/macbookair/Documents/Arduino/Timer/Timer.ino:1:0:
/Users/macbookair/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:239:2: error: ‘IO_REG_TYPE’ does not name a type
/Users/macbookair/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:240:11: error: ‘IO_REG_TYPE’ does not name a type
/Users/macbookair/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:241:2: error: ‘IO_REG_TYPE’ does not name a type
/Users/macbookair/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:242:11: error: ‘IO_REG_TYPE’ does not name a type
exit status 1
Error compiling for board Intel® Galileo.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Even after I followed this, it didn't work.

Schematic for slide pots

Hi!

I've been working with this library and it's pretty fun!

I'm trying to make a slide pot, but I really don't understand how to build the circuit. Would you post how to do that?

Thanks.

Esp8266 restarting

I loaded the example CapacitiveSensorSketch directly on the module esp8266 with the Arduino IDE, but the board is restarting. Can you help me with this?

Update the version and create a new release

It seems like there has been a lot of commits over the past couple of years, but the most recent official release is from 2016. So if I were to download this library through the Arduino IDE, I would get code from 6 years ago. It would probably be wise to create a new official release so that anyone who downloads this through the Arduino IDE gets the most up-to-date code.

Analog pin affecting capacitive sensor values

I am reading the analog value from a pot connected to VCC and GND with the wiper connected to A0.

Turning this pot varies my capacitive sensor (send pin 3, rcv pin 2) by a constant value which increases as the voltage at A0 increases.

Just wondering if this has ever been seen before.
Any instincts as to why?

Maybe it has to do with:
-slight voltage variance on VCC (or, AREF pin?) at different pot positions
--maybe I can recalibrate after detecting that the pot position has change?
--how is the recalibration function implemented?
-I am also outputting a 12-32kHz PWM signal proportional to the analog value that I read.

Build error on Aduino GIGA STM32

Hello,
I'm using the last version of this library on an Arduino GIGA but I have error during building the example code.

error: 'IO_REG_TYPE' does not name a type IO_REG_TYPE sBit; // send pin's ports and bitmask

Is this library compatible with STM32 processors?

Regards.

Compatible device

Hi,

it would be nice to add compatible devices list. I would like to build motion detector, but hesitates which board to buy.

Thanks.

Capacitive Sensor - Intel Edison

Hi
I was trying to use this library with Intel Edison Arduino Kit , but it does not work.

In file included from CapacitiveSensor.ino:3:0:
/Users/pigcan/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:97:3: error: 'IO_REG_TYPE' does not name a type
IO_REG_TYPE sBit; // send pin's ports and bitmask
^
/Users/pigcan/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:98:12: error: 'IO_REG_TYPE' does not name a type
volatile IO_REG_TYPE *sReg;
^
/Users/pigcan/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:99:3: error: 'IO_REG_TYPE' does not name a type
IO_REG_TYPE rBit; // receive pin's ports and bitmask
^
/Users/pigcan/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:100:12: error: 'IO_REG_TYPE' does not name a type
volatile IO_REG_TYPE *rReg;
^

Arduino Nano 33 BLE compatibility

Description

Library does not compile on Arduino Nano 33 BLE

Steps To Reproduce Problem

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

Hardware & Software

Board Arduino Nano 33 BLE
Shields / modules used none
Arduino IDE version 1.8.12
Teensyduino version (if using Teensy) none
Version info & package name (from Tools > Boards > Board Manager) v1.1.4 Arduino nRF528x
Operating system & version Windows 10
Any other software or hardware? none.

Arduino Sketch

none.

#include <CapacitiveSensor.h>

void setup() { 
// intentionally empty
}

void loop() {
// intentionally empty
}

Errors or Incorrect Output

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.

license file

Hi Paul,

What is the license used for this library? I cannot find it anywhere other than the one line of "copyright..." in the source files.

Thanks.

Exception 29 on ESP8266-12e

Hi I'm getting an Exception (29) on the esp8266-12E (NodeMCU DevBoard v1.0 "Amica")
Here is the error:

Exception (29):
epc1=0x40201e82 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000008 depc=0x00000000

ctx: cont 
sp: 3ffe9b60 end: 3ffe9d30 offset: 01a0

>>>stack>>>
3ffe9d00:  3fffdc20 000000fa 3ffe9d54 40201cf4  
3ffe9d10:  3fffdc20 00000000 3ffe9d54 4020184a  
3ffe9d20:  00000000 00000000 3ffe8d10 40100118  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld

Error -2 when using the ESP8266

Hi, I just received a NodeMcu ESP8266-12 and I discovered your lib, thank you for the good work.

There are something that bother me though:

  • when I run the example code, with a simple 1Mohm resistor, when nobody touches the foil, the lib returns -2 when calling .capacitiveSensor(30);
  • I touch the foil, the sensor behave normally and return
    So i tried with 3Mohm to see if it changes anything, but still the same.

I tested with 3 different power supply, but that changed nothing.

The solution is to put a 300kohm resistor. It works really well, return 0 to 2 when nothing happen, to 5000/6000 when someone is touching the foil.

Maybe the documentation can be updated with those values.

Have fun and thanks for the lib :)

too big capacity

Description

So I'm making 2 keys arduino keypad. 2 legs of resistors of each key goes to 2, 5 and 6, 9, output cables are going to 5 and 9.
I have problem with capacity, it goes really high and it's mixed with corect values.

Hardware & Software

Arduino Pro Micro
IDE 1.8.13

Arduino Sketch

https://github.com/fb39ca4/kappa-pad

Errors or Incorrect Output

Serial monitor goes like:
1, 20
1, 4000
1, 20
1, 15
1, 4000

There should not be those 4000, big values.

Licence update

Hi,
I was searching for license and I found it in cpp file, but if you could move it to LICENSE.md (more easy is to select license somewhere in github GUI), so it could be easily found and github would automaticlly recognize it.

Thanks for all your hard work :)

Hi Paul do you have any plans to add in the Metro M4 (samd51)

Please use this form only to report code defects or bugs.

For any question, even questions directly pertaining to this code, post your question on the forums related to the board you are using.

Arduino: forum.arduino.cc
Teensy: forum.pjrc.com
ESP8266: www.esp8266.com
ESP32: www.esp32.com
Adafruit Feather/Metro/Trinket: forums.adafruit.com
Particle Photon: community.particle.io

If you are experiencing trouble but not certain of the cause, or need help using this code, ask on the appropriate forum. This is not the place to ask for support or help, even directly related to this code. Only use this form you are certain you have discovered a defect in this code!

Please verify the problem occurs when using the very latest version, using the newest version of Arduino and any other related software.

----------------------------- Remove above -----------------------------

Description

Describe your problem.

Steps To Reproduce Problem

Please give detailed instructions needed for anyone to attempt to reproduce the problem.

Hardware & Software

Board
Shields / modules used
Arduino IDE version
Teensyduino version (if using Teensy)
Version info & package name (from Tools > Boards > Board Manager)
Operating system & version
Any other software or hardware?

Arduino Sketch

// Change the code below by your sketch (please try to give the smallest code which demonstrates the problem)
#include <Arduino.h>

// libraries: give links/details so anyone can compile your code for the same result

void setup() {
}

void loop() {
}

Errors or Incorrect Output

If you see any errors or incorrect output, please show it here. Please use copy & paste to give an exact copy of the message. Details matter, so please show (not merely describe) the actual message or error exactly as it appears.

Compilation of example sketch fails with esp8266 board package version >= 3.0.0

Description

Simple compilation of the example sketch fails with the below error.

Workaround:

Install older board package version < 3.0.0
esp8266 by ESP8266 Community Version 2.7.4

Steps To Reproduce Problem

Open example sketch and verify (compile) it.

Hardware & Software

IDE: Arduino 1.8.16 OR Arudino IDE 2.0.0-beta.12
Board: Generic ESP8266
Board: esp8266 by ESP8266 Community Version 3.0.2
ESP01-S
Win11

Arduino Sketch

#include <CapacitiveSensor.h>

/*
 * CapitiveSense Library Demo Sketch
 * Paul Badger 2008
 * Uses a high value resistor e.g. 10M between send pin and receive pin
 * Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
 * Receive pin is the sensor pin - try different amounts of foil/metal on this pin
 */


CapacitiveSensor   cs_4_2 = CapacitiveSensor(0,2);        // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired
//CapacitiveSensor   cs_4_6 = CapacitiveSensor(4,6);        // 10M resistor between pins 4 & 6, pin 6 is sensor pin, add a wire and or foil
//CapacitiveSensor   cs_4_8 = CapacitiveSensor(4,8);        // 10M resistor between pins 4 & 8, pin 8 is sensor pin, add a wire and or foil

void setup()                    
{
   cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);     // turn off autocalibrate on channel 1 - just as an example
   Serial.begin(9600);
}

void loop()                    
{
    long start = millis();
    long total1 =  cs_4_2.capacitiveSensor(30);
  //  long total2 =  cs_4_6.capacitiveSensor(30);
  //  long total3 =  cs_4_8.capacitiveSensor(30);

    Serial.print(millis() - start);        // check on performance in milliseconds
    Serial.print("\t");                    // tab character for debug windown spacing

    Serial.print(total1);                  // print sensor output 1
    //Serial.print("\t");
    //Serial.print(total2);                  // print sensor output 2
    //Serial.print("\t");
    //Serial.println(total3);                // print sensor output 3

    delay(10);                             // arbitrary delay to limit data to serial port 
}

Errors or Incorrect Output

Compiling library "CapacitiveSensor-master" "C:\\Users\\xyz\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\3.0.4-gcc10.3-1757bed/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\\Users\\xyz\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/include" "-IC:\\Users\\xyz\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/lwip2/include" "-IC:\\Users\\xyz\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\xyz\\AppData\\Local\\Temp\\arduino-sketch-D98C7FED0C5F5F9EA38B42012BE2DB9B/core" -c -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_GENERIC -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_GENERIC\"" -DLED_BUILTIN=2 -DFLASHMODE_DOUT -DESP8266 "-IC:\\Users\\xyz\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\cores\\esp8266" "-IC:\\Users\\xyz\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\3.0.2\\variants\\generic" "-Ie:\\Stuff\\Arduino\\projects\\libraries\\CapacitiveSensor-master" "e:\\Stuff\\Arduino\\projects\\libraries\\CapacitiveSensor-master\\CapacitiveSensor.cpp" -o "C:\\Users\\xyz\\AppData\\Local\\Temp\\arduino-sketch-D98C7FED0C5F5F9EA38B42012BE2DB9B\\libraries\\CapacitiveSensor-master\\CapacitiveSensor.cpp.o" e:\Stuff\Arduino\projects\libraries\CapacitiveSensor-master\CapacitiveSensor.cpp: In member function 'long int CapacitiveSensor::capacitiveSensor(uint8_t)': e:\Stuff\Arduino\projects\libraries\CapacitiveSensor-master\CapacitiveSensor.cpp:94:75: error: call of overloaded 'abs(long unsigned int)' is ambiguous 94 | if ( (millis() - lastCal > CS_AutocaL_Millis) && abs(total - leastTotal) < (int)(.10 * (float)leastTotal) ) { | ^ In file included from c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\cstdlib:75, from c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\stdlib.h:36, from C:\Users\xyz\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:27, from e:\Stuff\Arduino\projects\libraries\CapacitiveSensor-master\CapacitiveSensor.cpp:30: c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\stdlib.h:74:5: note: candidate: 'int abs(int)' 74 | int abs (int); | ^~~ In file included from c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\cstdlib:77, from c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\stdlib.h:36, from C:\Users\xyz\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:27, from e:\Stuff\Arduino\projects\libraries\CapacitiveSensor-master\CapacitiveSensor.cpp:30: c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits\std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)' 79 | abs(long double __x) | ^~~ c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits\std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)' 75 | abs(float __x) | ^~~ c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits\std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)' 71 | abs(double __x) | ^~~ c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits\std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)' 61 | abs(long long __x) { return __builtin_llabs (__x); } | ^~~ c:\users\xyz\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.4-gcc10.3-1757bed\xtensa-lx106-elf\include\c++\10.3.0\bits\std_abs.h:56:3: note: candidate: 'long int std::abs(long int)' 56 | abs(long __i) { return __builtin_labs(__i); } | ^~~ Using library CapacitiveSensor-master at version 0.5.1 in folder: E:\Stuff\Arduino\projects\libraries\CapacitiveSensor-master Compilation error: Error: 13 INTERNAL: exit status 1

compile error with RF-Duino

Hi there,

First of all: CapacitiveSensor is the greatest way of implementing a touch-Sensor I've seen. There are a lot of schematics with discrete parts on the net, but using almost nothing but 2 pins of a µC is fantastic!

I'm trying to use CapSense on my project with the RF-Duino.
There's a problem at compile with Pin-bitmasks:

/home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:239:2: error: 'IO_REG_TYPE' does not name a type IO_REG_TYPE sBit; // send pin's ports and bitmask ^ /home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:240:11: error: 'IO_REG_TYPE' does not name a type volatile IO_REG_TYPE *sReg; ^ /home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:241:2: error: 'IO_REG_TYPE' does not name a type IO_REG_TYPE rBit; // receive pin's ports and bitmask ^ /home/simon/Arduino/libraries/CapacitiveSensor-master/CapacitiveSensor.h:242:11: error: 'IO_REG_TYPE' does not name a type volatile IO_REG_TYPE *rReg; ^ Fehler beim Kompilieren.

How can they be found out?

Best regards,
m00ny

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.