Code Monkey home page Code Monkey logo

Comments (3)

sensorium avatar sensorium commented on July 23, 2024

Hi Jeff,
what version of Arduino are you using to compile?

Tim

On 26 January 2016 at 02:32, Jeff Thompson [email protected] wrote:

Wonderful project, thank you so much! I get an error trying to compile my
sketch, which I believe is from the Mozzi library:

Users/JeffThompson/Documents/Arduino/libraries/Mozzi/MozziGuts.cpp: In function 'void startAudioStandard()':
/Users/JeffThompson/Documents/Arduino/libraries/Mozzi/MozziGuts.cpp:285:9: error: 'class TimerOne' has no member named 'initializeCPUCycles'
Timer1.initializeCPUCycles(16000000UL/PWM_RATE, FAST); // fast mode enables higher PWM rate
^
/Users/JeffThompson/Documents/Arduino/libraries/Mozzi/MozziGuts.cpp:285:50: error: 'FAST' was not declared in this scope
Timer1.initializeCPUCycles(16000000UL/PWM_RATE, FAST); // fast mode enables higher PWM rate
^
exit status 1
Error compiling.

Is this an issue with the library?


Reply to this email directly or view it on GitHub
#23.

from mozzi.

jeffThompson avatar jeffThompson commented on July 23, 2024

Should have mentioned that! I'm running 1.6.6. Tried compiling for several different boards to see if that was the issue, but they all gave the same error.

from mozzi.

tfry-git avatar tfry-git commented on July 23, 2024

This is almost certainly caused by the compiler picking up the TimerOne.h header from a separately installed library rather than Mozzi's version.

Not sure on the best way out of this. TimerOne.cpp already has #include with quotation marks instead of angle brackets, so that won't help. @jeffThompson are you still around? If so, could you try editing Mozzi\utility\TimerOne.cpp, replacing #include "TimerOne.h" with #include "../utility/TimerOne.h"?

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.