Coder Social home page Coder Social logo

arduino-volume2's Introduction

arduino-volume2's People

Contributors

connornishijima avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arduino-volume2's Issues

vol.delay() not completing

It appears that the call to vol.delay() is not working. This can be seen in the example sketches. In wave_types, for example, the sketch does not get past setting the first frequency. Hacking around a bit seems to point to an issue setting toneMillis.

Replacing vol.delay(n) with delay(n * 64) in the example sketches resolves the issue, and produces tones as expected.

I've tried the lib with an Arduino Uno, Duemilanove and Pro Mini.

Consider the Output Compare Modulator (OCM1C0A) on the Mega

On the ATMega2560 and ATMega32U, there's an Output Compare Modulator (OCM1C0A) that does this modulation in Hardware, however it is limited to just the Arduino Mega digital pin 13.

If you configure the timers for OCR1C and OCR0A PWM output, you get hardware modulation of the two timers on the shared PB7/OC1C/OC0A pin.

Arduino Nano support

Hello,
First thank you for this great project, really helpful !!!!! 😄
I a newbie in Arduino so sorry if my question is not relevant.
Is there a way to use this library on a Nano board ?? I cant seem to find any info on this.

thanks a lot

EmeEmu

no alternate pin implemented

Hi Connor,

it seems neither the github repo nor the library downloaded by the Arduino IDE actually contain code which contains a way to change the pin, as mentioned in the README.
Is it possible that you forgot to push some commits?
Or is the volume2 library defective anyway, at the moment?

cheers, and thanks!

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.