Author Topic: Capsense Library For Rfduino  (Read 1720 times)

gecko

  • RFduino Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Capsense Library For Rfduino
« on: September 06, 2014, 03:19:24 AM »
Hi, I am trying to make the capsense library written by Paul badger
http://playground.arduino.cc//Main/CapacitiveSensor?from=Main.CapSense#.UzL-oa1_uT8
to work in rfduino. There is a version 5 which says it would work for non avr boards but it doesnt work in rfduino, having compilation issues. Can somebody help?



In file included from CapacitiveSensorSketch.pde:1:
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/RFduino/libraries/CapacitiveSr/CapacitiveSensor.h:97: error: 'IO_REG_TYPE' does not name a type
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/RFduino/libraries/CapacitiveSr/CapacitiveSensor.h:98: error: ISO C++ forbids declaration of 'IO_REG_TYPE' with no type
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/RFduino/libraries/CapacitiveSr/CapacitiveSensor.h:98: error: expected ';' before '*' token
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/RFduino/libraries/CapacitiveSr/CapacitiveSensor.h:99: error: 'IO_REG_TYPE' does not name a type
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/RFduino/libraries/CapacitiveSr/CapacitiveSensor.h:100: error: ISO C++ forbids declaration of 'IO_REG_TYPE' with no type
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/RFduino/libraries/CapacitiveSr/CapacitiveSensor.h:100: error: expected ';' before '*' token

mkay

  • RFduino Team
  • *****
  • Posts: 405
  • Karma: +15/-0
    • View Profile
Re: Capsense Library For Rfduino
« Reply #1 on: September 08, 2014, 03:15:38 PM »
Hi Gecko, this library uses AVR specific code, so it will need some porting to work on the RFduino.