makeabilitylab / physcomp

Physical Computing course website
https://makeabilitylab.github.io/physcomp/
MIT License
33 stars 6 forks source link

Fix on Brett's advanced tone library for chord on ATmegaA32U4 boards #47

Open EdigaHe opened 3 years ago

EdigaHe commented 3 years ago

In "Intro to Arduino L2", the code links on Brett Hagman's tone library are not valid anymore. I suggest using Brett's GitHub page instead: https://github.com/bhagman/Tone.

To compile the library on the ATmegaA32U4 boards such as the Leonardo board, we need to modify Tone.cpp. Below describes the steps to use the library.

  1. To use the advanced library, go to Brett's GitHub repository and download the files as a zip package.
  2. Upon downloaded, unzip the package in \Arduino\libraries\ and rename the folder with "Tone".
  3. Replace Tone.cpp with a revised version (thanks to Kwok Leong).
  4. Now the library is ready.