Comments (7)
I know why! See adafruit/Adafruit_FreeTouch#17 for full details of how FreeTouch code affects DMA.
The copy of FreeTouch in Circuit Playground has the same issue.
This sketch demonstrates the issue using the Circuit Playground version of the code: https://gist.github.com/mzero/89955e14d41d7e37a439ba806746f632
from adafruit_circuitplayground.
weird - we're not sure if/when we'll get to figuring this out because its more advanced usage - let us know if you figure it out!
from adafruit_circuitplayground.
by trial and error (inserting returns at random positions, commenting out code lines) i have just found out that changing the clock source_generator
in Adafruit_CPlay_FreeTouch::setupClock()
to 3
(instead of 1) makes it work in my case, though i have absolutely no idea what this means and why it works.
from adafruit_circuitplayground.
yeah that could do it - wanna send a PR in? we'll look at it next time we do a sweep
from adafruit_circuitplayground.
that's what i thought … until i tested the part of the sketch that uses the microphone. with source_generator = 3
the call to pdm.configure()
– oddly enough – again breaks Adafruit_NeoMatrix_ZeroDMA
. i would have expected it to break the PTC, if at all. so if i then use 4 as gclk for Adafruit_ZeroPDM Adafruit_CPlay_Mic::pdm = Adafruit_ZeroPDM(34, 35, 4);
in Adafruit_CPlay_Mic.cpp
everything i currently need works as expected. not being able to use arbitrary sources/generators for the touch clock tells me that there's probably something wrong with clock setup in Adafruit_CPlay_FreeTouch.cpp
i think i'll have to read up on samd21 clocks and gain some more understanding before i can send a PR.
maybe you can persuade atmel / microchip / arm to provide full low-level documentation for the PTC?
from adafruit_circuitplayground.
there's no documentation for PTC - we've asked :( its all under NDA - we had to hand reverse engineer it from binary ;)
from adafruit_circuitplayground.
@PaintYourDragon do you know what this could be? its an obscure one but perhpas you're like "oh yeah i know this!"
from adafruit_circuitplayground.
Related Issues (20)
- soundPressureLevel() intermittently returns 'inf' at low levels on AVR HOT 4
- Example programs broken HOT 1
- C:\Users\Dr.Zahid\Documents\Arduino\libraries\Adafruit_Circuit_Playground\utility\Adafruit_CPlay_Mic.cpp: In member function 'void Adafruit_CPlay_Mic::capture(int16_t*, uint16_t)': C:\Users\Dr.Zahid\Documents\Arduino\libraries\Adafruit_Circuit_Playground\utility\Adafruit_CPlay_Mic.cpp:68:37: error: 'analogPinToChannel' was not declared in this scope channel = analogPinToChannel(4); // Pin A4 to ADC channel ^ exit status 1 Error compiling for board Arduino Nano. HOT 2
- Having trouble with the Speech examples HOT 14
- bug in Adafruit_CPlay_Speaker::set() HOT 5
- Memory allocation error on CPX HOT 2
- Adafruit_SleepyDog.h not found when compiling megademo example. HOT 5
- External neo pixel using pin A1 doesn’t work
- redLed() no longer working for CPC HOT 6
- Speaker on/off broken on CPX HOT 4
- Preprocessor mismatch for CPX HOT 2
- Arduino Updater is always showing 1.86 New Version available HOT 11
- Capacitive touch not working on Bluefruit Playground HOT 2
- Add example for using external NeoPixels HOT 2
- CircuitPlayground.readCap() breaks analogRead HOT 2
- Package discription is no longer accurate. HOT 3
- No implementation for sendRAW HOT 1
- Cap Touch samples not being used with FreeTouch HOT 1
- Bluefruit CP - cap touch sound demo does not seem to work when pushing the sensors, though it will play the series of tones.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_circuitplayground.