TinyCircuits Forum

General Category => General Discussion => Topic started by: Ben R on October 05, 2017, 06:13:57 PM

Title: Error With Audio tinyshield library
Post by: Ben R on October 05, 2017, 06:13:57 PM
I tried running the audio tinyshield library and it requires a file that isn't there, this is most likely a noob mistake but I can't get it to work
Error:
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "TinyScreen+, Default"

In file included from C:\#####\###\#########\Arduino\libraries\WaveHC\WaveHC.cpp:15:0:

C:\#####\###\#######\Arduino\libraries\WaveHC/mcpDac.h:26:20: fatal error: avr/io.h: No such file or directory

 #include <avr/io.h>

                    ^

compilation terminated.

exit status 1
Error compiling for board TinyScreen+.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Title: Re: Error With Audio tinyshield library
Post by: bearleader on December 05, 2017, 09:30:06 PM
I am seeing this error as well with the 1.8.4 Arduino IDE on my mac.  Does anyone else have this problem or have a possible solution?  Below is the error that is showing up in my IDE.
Arduino: 1.8.4 (Mac OS X), Board: "TinyScreen+, Default"

In file included from XXXXX/Documents/Arduino/libraries/WaveHC/WaveHC.cpp:15:0:
XXXXX/Documents/Arduino/libraries/WaveHC/mcpDac.h:26:20: fatal error: avr/io.h: No such file or directory
 #include <avr/io.h>

                    ^
compilation terminated.
exit status 1
Error compiling for board TinyScreen+.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Title: Re: Error With Audio tinyshield library
Post by: Ben R on December 10, 2017, 11:59:58 AM
I just got a message back from the Tinycircuits team, they put the right library in and now it works
Title: Re: Error With Audio tinyshield library
Post by: bearleader on December 12, 2017, 08:44:53 PM
Thank you for posting the new library!!!!  It works great.  I am curious as to why TinyCircuits hasn't updated the documentation and provided a repo to pull this library from?

For anyone who tries the library example program: Be sure to add the SdFat library.  It can be downloaded in the 1.8.5 IDE using the Library Manager.  It is needed for the example code to function.