Code Monkey home page Code Monkey logo

Comments (6)

sensorium avatar sensorium commented on June 25, 2024

Hi,
Mozzi uses its own modified version of the FrequencyTimer2 library, in the utilities folder. It looks like you have another install of the FrequencyTimer2 library on your system which is conflicting with Mozzi's one. It should work if you remove the other version while you use Mozzi.
The reason it was initially included with Mozzi was to avoid a list of dependencies which need to be installed for Mozzi to work. Perhaps Mozzi's version could be renamed to stop conflicts when the original FrequencyTimer2 is already installed. Even better would be if libraries could automatically install dependencies, but I'm not sure if this is possible yet with Arduino...

from mozzi.

Neuro-Dynamics avatar Neuro-Dynamics commented on June 25, 2024

I removed ALL libraries except for Mozzi, closed arduino IDE and re-opened. Still same problem.

from mozzi.

sensorium avatar sensorium commented on June 25, 2024

Thanks for your help. I see the problem in line 444 of MozziGuts.cpp. Please try the most recent commit.

from mozzi.

Neuro-Dynamics avatar Neuro-Dynamics commented on June 25, 2024

Thank you. This solves one of the errors, but the others persist, so it will not compile yet. Here is the error message now:

In file included from C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:13:0:

C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp: In function 'void setupTimer2()':

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:37: error: expected unqualified-id before '(' token

#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )

                                 ^

C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:443:29: note: in expansion of macro 'clockCyclesPerMicrosecond'

period *= FrequencyTimer2::clockCyclesPerMicrosecond();

                         ^

exit status 1

from mozzi.

sensorium avatar sensorium commented on June 25, 2024

Removed incorrect FrequencyTimer2 namespace for clockCyclesPerMicrosecond(). Committed to github. It compiles here, hope it works for you now.

from mozzi.

Neuro-Dynamics avatar Neuro-Dynamics commented on June 25, 2024

Excellent! It does compile now. So it was just a namespace issue. I am glad it was a simple fix. 👍
Thank you!

from mozzi.

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.