I want to implement this code but couldn't find "analogWave.h" anywhere. Does anyone know where I can get it?
Also, where is the documentation?
You don't have to get it. It is loaded into the system when you install the board manager package for the R4 board. So you should just be able to use it.
If you want to look at it then on my mac it is stored at:-
/Users/your_username_here/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.0.2/libraries/AnalogWave/analogWave.cpp
Change 'your_username_here' to your user name, copy it, and then select "Goto Folder" from the Finder's 'Go' menu.
Not sure how to get it from a PC or Linux.
At the moment the documentation is being written. So far it is not very comprehensive and there is a lot about this library that is undocumented. You can learn how use it by following the tutorials, but there is a lot more to this library than is covered in the tutorials.
For the latest documentation see:-
As Grumpy_Mike said
I am also searching for documentation. Unfortunately, I have not found it either.
If you want to find this file on your computer, I have a more convenient method. Just press Ctrl in Arduino IDE 2 and then click on analogWave in #include "analogWave.h". Arduino IDE will automatically help you navigate, and you can directly jump to this code.
OK then go here
minima documentation
And click on cheat sheet. Some of the information is even correct. You will also see the word DOCUMENTATION under some of the things you can click on.
For the WIFI documentation start here
Wifi documentation
To see all the libraries on a Mac then copy this link replacing YOUR_USERNAME with your actual user name.
/Users/YOUR_USERNAME/Library/Arduino15/packages/arduino/hardware/renesas_uno/1.0.2/libraries/
Then use the finders "go to folder" option you will find it. Note on a Mac these folders are normally hidden.
Thank you for your reply!
Perhaps I didn't express myself clearly. I was referring to the analogWave.h document. Just like what is provided in Mouse - Arduino Reference, each function has its corresponding syntax and parameter explanations.
The content on the page https://docs.arduino.cc/tutorials/uno-r4-wifi/dac is more like a beginner's tutorial, simple and easy to understand, rather than a library documentation. It is good, but it does not meet my needs as it does not provide explanations about library function syntax parameters, etc. When I want to call certain functions, I may need some more detailed information. Fortunately, I found the code implementation in analogWave.cpp located in the same directory as analogWave.h, which has been helpful for me.
I guess analogWave.h may not be a formal library, so there might not be any related documentation available.
Yes it is. Although it is a very bad library for creating sound but it is official alright.
If you want to see how to use it look under the File -> examples menu for the official examples.
What do you want to do with this library? If you want to generate sounds to play I have a better method. See:-
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.