Closed fred-rabelo closed 4 months ago
The library.properties file has "architectures=mbed_rp2040", which would show this library as being incompatible with the Earle Philhower core.
You would need to trawl through the PicoCapSensing.cpp file to check what's causing the error as it is probably an mbed function that is the problem.
oh i see! i believe that would a little beyond my skills now. Thanks for the reply!
hi!
First thanks for the Library!
I am trying to use it in my project but i am getting some issue.
It seems that the Capsense function sometimes make the cpu to stop whe the touch sensor is triggered. Blinking led stops and Serial communication also. Touch the sensor again a few times makes the board work again. But only if connected to the computer. If i power the board with battery or USB charger, it works just fine (at least the blinking led goes on). The problem is that my project is a software controller (a daw fader controller), so it has to be connected to the computer.
does anyone have a similar issue or any ideas where to look for problems?
Apriciate any help!
Board: Adafruit Feather RP2040, Earle Philhower core
code: (sorry for the formatting... the "insert code" button doesnt seem to work properly)
`
include
include
include "blink_led.hpp"
include "Fader.hpp"
void setup() {
Serial.begin(9600); while (!Serial) {;;} // wait for serial port to connect. Needed for native USB //delay(1000);
led_setup(); // Setup function to blink LED for assessing if CPU is running properly fader_setup(); // Setup for the fader
}
void loop() {
blink_led(); // Function to blink LED for assessing if CPU is running properly
update_fader();
} `
`#ifndef BLINK_LED_H
define BLINK_LED_H
void led_setup(); void blink_led();
endif`
`// ------------------------ Blink LED ------------------------------------------
/ Function to blink LED for assessing if CPU is running properly /
include "blink_led.hpp"
include
include
int led = LED_BUILTIN; bool led_status = 0; unsigned long timer_led = 0; // saves last time the Led was
void led_setup () { // set LED to be an output pin
}
void blink_led() // Basic blink function {
}
// -----------------------------------------------------------------------------
`
`#ifndef fader_h
define fader_h
void fader_setup(); void update_fader ();
void update_fader_pos(); void update_touch(); bool isTouch();
bool calibrate_minmax();
endif`
`#include "Fader.hpp"
include
include
include
include "PicoCapSensing.h"
// -------------------------- Declare and Setup Fader Stuff ------------------------------------
// Initialize Fader
//
// initialize Touch Sensor
//
// Setup Fader void fader_setup() {
//
// -------------------------- Declare and Setup Fader Stuff ------------------------------------
// ------------------------------- Update Fader ------------------------------------------------
void update_fader() {
}
// ------------------------------- Update Fader ------------------------------------------------
// ------------------------------- Update Fader Pos --------------------------------------------
// ------------------------------- Update Fader Pos --------------------------------------------
// ----------------------------- Update Touch Status -------------------------------------------
// ----------------------------- Update Touch Status -------------------------------------------
// --------------------------- Read Touch as True/False ----------------------------------------
// --------------------------- Read Touch as True/False ---------------------------------------- `