GithubHelp home page GithubHelp logo

Comments (7)

mzero avatar mzero commented on June 19, 2024 2

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.

ladyada avatar ladyada commented on June 19, 2024

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.

buxit avatar buxit commented on June 19, 2024

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.

ladyada avatar ladyada commented on June 19, 2024

yeah that could do it - wanna send a PR in? we'll look at it next time we do a sweep

from adafruit_circuitplayground.

buxit avatar buxit commented on June 19, 2024

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.

ladyada avatar ladyada commented on June 19, 2024

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.

ladyada avatar ladyada commented on June 19, 2024

@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)

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.