diff --git a/lib/ESP32-audioI2S/CMakeLists.txt b/lib/ESP32-audioI2S/CMakeLists.txt
new file mode 100644
index 0000000..2ac4dd4
--- /dev/null
+++ b/lib/ESP32-audioI2S/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+get_filename_component(dir ${CMAKE_CURRENT_LIST_FILE} PATH)
+FILE(GLOB_RECURSE app_sources ${dir}/src/*.cpp)
+
+idf_component_register(SRCS ${app_sources}
+ REQUIRES "ESP32-audioI2S"
+ INCLUDE_DIRS "src"
+ REQUIRES wear_levelling Arduino
+)
diff --git a/lib/ESP32-audioI2S/LICENSE b/lib/ESP32-audioI2S/LICENSE
new file mode 100644
index 0000000..f288702
--- /dev/null
+++ b/lib/ESP32-audioI2S/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/lib/ESP32-audioI2S/README.md b/lib/ESP32-audioI2S/README.md
new file mode 100644
index 0000000..3091c28
--- /dev/null
+++ b/lib/ESP32-audioI2S/README.md
@@ -0,0 +1,184 @@
+# ESP32-audioI2S
+
+:warning: **This library only works on multi-core chips like ESP32, ESP32-S3 and ESP32-P4. It does not work on the ESP32-S2, ESP32-C3 etc** :warning:
+
+Plays mp3, m4a and wav files from SD card via I2S with external hardware.
+HELIX-mp3 and -aac decoder is included. There is also an OPUS decoder for Fullband, n VORBIS decoder and a FLAC decoder.
+Works with MAX98357A (3 Watt amplifier with DAC), connected three lines (DOUT, BLCK, LRC) to I2S.
+For stereo are two MAX98357A necessary. AudioI2S works with UDA1334A (Adafruit I2S Stereo Decoder Breakout Board), PCM5102A and CS4344.
+Other HW may work but not tested. Plays also icy-streams and GoogleTTS. Can be compiled with Arduino IDE. [WIKI](https://github.com/schreibfaul1/ESP32-audioI2S/wiki)
+
+```` c++
+#include "Arduino.h"
+#include "WiFi.h"
+#include "Audio.h"
+#include "SD.h"
+#include "FS.h"
+
+// Digital I/O used
+#define SD_CS 5
+#define SPI_MOSI 23
+#define SPI_MISO 19
+#define SPI_SCK 18
+#define I2S_DOUT 25
+#define I2S_BCLK 27
+#define I2S_LRC 26
+
+Audio audio;
+
+String ssid = "*******";
+String password = "*******";
+
+void setup() {
+ pinMode(SD_CS, OUTPUT); digitalWrite(SD_CS, HIGH);
+ SPI.begin(SPI_SCK, SPI_MISO, SPI_MOSI);
+ Serial.begin(115200);
+ SD.begin(SD_CS);
+ WiFi.disconnect();
+ WiFi.mode(WIFI_STA);
+ WiFi.begin(ssid.c_str(), password.c_str());
+ while (WiFi.status() != WL_CONNECTED) delay(1500);
+ audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
+ audio.setVolume(21); // default 0...21
+// or alternative
+// audio.setVolumeSteps(64); // max 255
+// audio.setVolume(63);
+//
+// *** radio streams ***
+ audio.connecttohost("http://stream.antennethueringen.de/live/aac-64/stream.antennethueringen.de/"); // aac
+// audio.connecttohost("http://mcrscast.mcr.iol.pt/cidadefm"); // mp3
+// audio.connecttohost("http://www.wdr.de/wdrlive/media/einslive.m3u"); // m3u
+// audio.connecttohost("https://stream.srg-ssr.ch/rsp/aacp_48.asx"); // asx
+// audio.connecttohost("http://tuner.classical102.com/listen.pls"); // pls
+// audio.connecttohost("http://stream.radioparadise.com/flac"); // flac
+// audio.connecttohost("http://stream.sing-sing-bis.org:8000/singsingFlac"); // flac (ogg)
+// audio.connecttohost("http://s1.knixx.fm:5347/dein_webradio_vbr.opus"); // opus (ogg)
+// audio.connecttohost("http://stream2.dancewave.online:8080/dance.ogg"); // vorbis (ogg)
+// audio.connecttohost("http://26373.live.streamtheworld.com:3690/XHQQ_FMAAC/HLSTS/playlist.m3u8"); // HLS
+// audio.connecttohost("http://eldoradolive02.akamaized.net/hls/live/2043453/eldorado/master.m3u8"); // HLS (ts)
+// *** web files ***
+// audio.connecttohost("https://github.com/schreibfaul1/ESP32-audioI2S/raw/master/additional_info/Testfiles/Pink-Panther.wav"); // wav
+// audio.connecttohost("https://github.com/schreibfaul1/ESP32-audioI2S/raw/master/additional_info/Testfiles/Santiano-Wellerman.flac"); // flac
+// audio.connecttohost("https://github.com/schreibfaul1/ESP32-audioI2S/raw/master/additional_info/Testfiles/Olsen-Banden.mp3"); // mp3
+// audio.connecttohost("https://github.com/schreibfaul1/ESP32-audioI2S/raw/master/additional_info/Testfiles/Miss-Marple.m4a"); // m4a (aac)
+// audio.connecttohost("https://github.com/schreibfaul1/ESP32-audioI2S/raw/master/additional_info/Testfiles/Collide.ogg"); // vorbis
+// audio.connecttohost("https://github.com/schreibfaul1/ESP32-audioI2S/raw/master/additional_info/Testfiles/sample.opus"); // opus
+// *** local files ***
+// audio.connecttoFS(SD, "/test.wav"); // SD
+// audio.connecttoFS(SD_MMC, "/test.wav"); // SD_MMC
+// audio.connecttoFS(SPIFFS, "/test.wav"); // SPIFFS
+
+// audio.connecttospeech("Wenn die Hunde schlafen, kann der Wolf gut Schafe stehlen.", "de"); // Google TTS
+}
+
+void loop(){
+ audio.loop();
+ vTaskDelay(1);
+}
+
+// optional
+void audio_info(const char *info){
+ Serial.print("info "); Serial.println(info);
+}
+void audio_id3data(const char *info){ //id3 metadata
+ Serial.print("id3data ");Serial.println(info);
+}
+void audio_eof_mp3(const char *info){ //end of file
+ Serial.print("eof_mp3 ");Serial.println(info);
+}
+void audio_showstation(const char *info){
+ Serial.print("station ");Serial.println(info);
+}
+void audio_showstreamtitle(const char *info){
+ Serial.print("streamtitle ");Serial.println(info);
+}
+void audio_bitrate(const char *info){
+ Serial.print("bitrate ");Serial.println(info);
+}
+void audio_commercial(const char *info){ //duration in sec
+ Serial.print("commercial ");Serial.println(info);
+}
+void audio_icyurl(const char *info){ //homepage
+ Serial.print("icyurl ");Serial.println(info);
+}
+void audio_lasthost(const char *info){ //stream URL played
+ Serial.print("lasthost ");Serial.println(info);
+}
+void audio_eof_speech(const char *info){
+ Serial.print("eof_speech ");Serial.println(info);
+}
+
+````
+
+````c++
+/* ESP32-S3, ESP32-P4 EXAMPLE */
+
+#include "Arduino.h"
+#include "Audio.h"
+#include "WiFi.h"
+#include "SD_MMC.h"
+
+#define I2S_DOUT 9
+#define I2S_BCLK 3
+#define I2S_LRC 1
+#define SD_MMC_D0 11
+#define SD_MMC_CLK 13
+#define SD_MMC_CMD 14
+
+Audio audio;
+
+String ssid = "*****";
+String password = "*****";
+
+void setup() {
+ Serial.begin(115200);
+// WiFi.begin(ssid.c_str(), password.c_str());
+// while (WiFi.status() != WL_CONNECTED) delay(1500);
+
+ pinMode(SD_MMC_D0, INPUT_PULLUP);
+ SD_MMC.setPins(SD_MMC_CLK, SD_MMC_CMD, SD_MMC_D0);
+ SD_MMC.begin("/sdcard", true);
+
+ audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
+ audio.setVolume(12); // default 0...21
+// audio.connecttohost("http://stream.antennethueringen.de/live/aac-64/stream.antennethueringen.de/"); // aac
+ audio.connecttoFS(SD_MMC, "/test.wav");
+}
+
+void loop() {
+ audio.loop();
+ vTaskDelay(1);
+}
+
+// optional
+void audio_info(const char *info){
+ Serial.print("info "); Serial.println(info);
+}
+````
+
+
+
+|Codec |ESP32 |ESP32 PSRAM |ESP32-S3 or ESP32-P4 + PSRAM | |
+|------------|-------|-------------|-----------------------------|--------------------------|
+| mp3 | y | y | y | |
+| aac | n | y | y | |
+| aacp | n | y (mono) | y (+SBR, +Parametric Stereo)| |
+| wav | y | y | y | |
+| flac | n | y | y |blocksize max 24576 bytes |
+| vorbis | n | y | y | <=196Kbit/s |
+| m4a | n | y | y | |
+| opus | n | y | y |celt only |
+
+
+
+***
+Wiring
+
+***
+Impulse diagram
+
+***
+Yellobyte has developed an all-in-one board. It includes an ESP32-S3 N8R2, 2x MAX98357 and an SD card adapter.
+Documentation, circuit diagrams and examples can be found here: https://github.com/yellobyte/ESP32-DevBoards-Getting-Started
+
+
diff --git a/lib/ESP32-audioI2S/additional_info/Arduino Library.png b/lib/ESP32-audioI2S/additional_info/Arduino Library.png
new file mode 100644
index 0000000..d8e13c7
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Arduino Library.png differ
diff --git a/lib/ESP32-audioI2S/additional_info/Audio Duration.png b/lib/ESP32-audioI2S/additional_info/Audio Duration.png
new file mode 100644
index 0000000..83d829a
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Audio Duration.png differ
diff --git a/lib/ESP32-audioI2S/additional_info/Breadboard.jpg b/lib/ESP32-audioI2S/additional_info/Breadboard.jpg
new file mode 100644
index 0000000..a5bbe2a
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Breadboard.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/DAC CS4344.jpg b/lib/ESP32-audioI2S/additional_info/DAC CS4344.jpg
new file mode 100644
index 0000000..e7eb418
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/DAC CS4344.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/DAC PCM5102A.jpg b/lib/ESP32-audioI2S/additional_info/DAC PCM5102A.jpg
new file mode 100644
index 0000000..72dd2eb
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/DAC PCM5102A.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/ESP32_I2S_MAX98357A .JPG b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_MAX98357A .JPG
new file mode 100644
index 0000000..3721ca8
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_MAX98357A .JPG differ
diff --git a/lib/ESP32-audioI2S/additional_info/ESP32_I2S_PCM5102A.JPG b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_PCM5102A.JPG
new file mode 100644
index 0000000..5d64a31
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_PCM5102A.JPG differ
diff --git a/lib/ESP32-audioI2S/additional_info/ESP32_I2S_PCM5102A_ONLY.JPG b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_PCM5102A_ONLY.JPG
new file mode 100644
index 0000000..f0c5dcd
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_PCM5102A_ONLY.JPG differ
diff --git a/lib/ESP32-audioI2S/additional_info/ESP32_I2S_UDA1334A.JPG b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_UDA1334A.JPG
new file mode 100644
index 0000000..2769427
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/ESP32_I2S_UDA1334A.JPG differ
diff --git a/lib/ESP32-audioI2S/additional_info/FLAC Metadata Picture Block.jpg b/lib/ESP32-audioI2S/additional_info/FLAC Metadata Picture Block.jpg
new file mode 100644
index 0000000..57a393f
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/FLAC Metadata Picture Block.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/ID3 Attatched Picture Frame.jpg b/lib/ESP32-audioI2S/additional_info/ID3 Attatched Picture Frame.jpg
new file mode 100644
index 0000000..87d63f5
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/ID3 Attatched Picture Frame.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/Impulsdiagramm.jpg b/lib/ESP32-audioI2S/additional_info/Impulsdiagramm.jpg
new file mode 100644
index 0000000..447d88d
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Impulsdiagramm.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/M4A Coverart Block.jpg b/lib/ESP32-audioI2S/additional_info/M4A Coverart Block.jpg
new file mode 100644
index 0000000..b1fa16e
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/M4A Coverart Block.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/Ogg_Metadatapicture.png b/lib/ESP32-audioI2S/additional_info/Ogg_Metadatapicture.png
new file mode 100644
index 0000000..f88b064
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Ogg_Metadatapicture.png differ
diff --git a/lib/ESP32-audioI2S/additional_info/Partition Scheme.png b/lib/ESP32-audioI2S/additional_info/Partition Scheme.png
new file mode 100644
index 0000000..7267a3e
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Partition Scheme.png differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/Collide.ogg b/lib/ESP32-audioI2S/additional_info/Testfiles/Collide.ogg
new file mode 100644
index 0000000..f829117
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/Collide.ogg differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/Miss-Marple.m4a b/lib/ESP32-audioI2S/additional_info/Testfiles/Miss-Marple.m4a
new file mode 100644
index 0000000..90773d7
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/Miss-Marple.m4a differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/Olsen-Banden.mp3 b/lib/ESP32-audioI2S/additional_info/Testfiles/Olsen-Banden.mp3
new file mode 100644
index 0000000..e25afd3
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/Olsen-Banden.mp3 differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/Pink-Panther.wav b/lib/ESP32-audioI2S/additional_info/Testfiles/Pink-Panther.wav
new file mode 100644
index 0000000..b603144
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/Pink-Panther.wav differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/Santiano-Wellerman.flac b/lib/ESP32-audioI2S/additional_info/Testfiles/Santiano-Wellerman.flac
new file mode 100644
index 0000000..53df53f
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/Santiano-Wellerman.flac differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/myPlaylist.m3u b/lib/ESP32-audioI2S/additional_info/Testfiles/myPlaylist.m3u
new file mode 100644
index 0000000..023c12f
--- /dev/null
+++ b/lib/ESP32-audioI2S/additional_info/Testfiles/myPlaylist.m3u
@@ -0,0 +1,5 @@
+#EXTM3U
+#EXTINF:18,Bjarne Liller - Olsen Banden (Titelmusik der Olsenbande) - Olsen-Banden.mp3
+https://raw.githubusercontent.com/schreibfaul1/ESP32-audioI2S/master/additional_info/Testfiles/Olsen-Banden.mp3
+#EXTINF:10,Santiano-Wellermann - Santiano-Wellerman.flac
+https://raw.githubusercontent.com/schreibfaul1/ESP32-audioI2S/master/additional_info/Testfiles/Santiano-Wellerman.flac
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/sample.opus b/lib/ESP32-audioI2S/additional_info/Testfiles/sample.opus
new file mode 100644
index 0000000..3eea946
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/sample.opus differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/seconds-CBR.mp3 b/lib/ESP32-audioI2S/additional_info/Testfiles/seconds-CBR.mp3
new file mode 100644
index 0000000..c5ac91d
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/seconds-CBR.mp3 differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/seconds-VBR.mp3 b/lib/ESP32-audioI2S/additional_info/Testfiles/seconds-VBR.mp3
new file mode 100644
index 0000000..1abc713
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/seconds-VBR.mp3 differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/test_16bit_mono.wav b/lib/ESP32-audioI2S/additional_info/Testfiles/test_16bit_mono.wav
new file mode 100644
index 0000000..08abecf
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/test_16bit_mono.wav differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/test_16bit_stereo.wav b/lib/ESP32-audioI2S/additional_info/Testfiles/test_16bit_stereo.wav
new file mode 100644
index 0000000..9c2d693
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/test_16bit_stereo.wav differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/test_8bit_mono.wav b/lib/ESP32-audioI2S/additional_info/Testfiles/test_8bit_mono.wav
new file mode 100644
index 0000000..44d0ce3
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/test_8bit_mono.wav differ
diff --git a/lib/ESP32-audioI2S/additional_info/Testfiles/test_8bit_stereo.wav b/lib/ESP32-audioI2S/additional_info/Testfiles/test_8bit_stereo.wav
new file mode 100644
index 0000000..e94b092
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Testfiles/test_8bit_stereo.wav differ
diff --git a/lib/ESP32-audioI2S/additional_info/Volume_Settings_Dynamics.jpg b/lib/ESP32-audioI2S/additional_info/Volume_Settings_Dynamics.jpg
new file mode 100644
index 0000000..225278c
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/Volume_Settings_Dynamics.jpg differ
diff --git a/lib/ESP32-audioI2S/additional_info/lowpass.png b/lib/ESP32-audioI2S/additional_info/lowpass.png
new file mode 100644
index 0000000..e6b6774
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/lowpass.png differ
diff --git a/lib/ESP32-audioI2S/additional_info/minimal.JPG b/lib/ESP32-audioI2S/additional_info/minimal.JPG
new file mode 100644
index 0000000..935dc8a
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/minimal.JPG differ
diff --git a/lib/ESP32-audioI2S/additional_info/with PSRAM.png b/lib/ESP32-audioI2S/additional_info/with PSRAM.png
new file mode 100644
index 0000000..8d98f8d
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/with PSRAM.png differ
diff --git a/lib/ESP32-audioI2S/additional_info/without PSRAM.png b/lib/ESP32-audioI2S/additional_info/without PSRAM.png
new file mode 100644
index 0000000..127858d
Binary files /dev/null and b/lib/ESP32-audioI2S/additional_info/without PSRAM.png differ
diff --git a/lib/ESP32-audioI2S/examples/AC101/AC101.cpp b/lib/ESP32-audioI2S/examples/AC101/AC101.cpp
new file mode 100644
index 0000000..cf80aff
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/AC101/AC101.cpp
@@ -0,0 +1,352 @@
+/*
+ AC101 - An AC101 Codec driver library for Arduino
+ Copyright (C) 2019, Ivo Pullens, Emmission
+
+ Inspired by:
+ https://github.com/donny681/esp-adf/tree/master/components/audio_hal/driver/AC101
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+ Febr 2021 modified by schreibfaul1 - set correct pll values
+ March 2021 modified by schreibfaul1 - can handle two i2c instances
+ May 2021 modified by schreibfaul1 - constructor changed
+ Oct 2021 modified by schreibfaul1 - I2C wrong ACK in ReadReg
+ Jan 2022 modified by schreibfaul1 - left right channel swapped
+ Jan 2022 modified by schreibfaul1 - suppress compiler warning: left shift of negative value
+
+ examples:
+
+ //one I2C bus: (default behaviour)
+ AC101 ac;
+ ac.begin(sda, scl);
+
+ //two I2C busses:
+ TwoWire i2cBusOne = TwoWire(0);
+ TwoWire i2cBusTwo = TwoWire(1);
+ AC101 ac(&i2cBusOne);
+
+ i2cBusOne.begin(sda, scl, 400000);
+*/
+
+#include "AC101.h"
+
+#define BCLK // clock over BCLK comment out: clock over MCLK
+
+#define AC101_ADDR 0x1A // Device address
+
+#define CHIP_AUDIO_RS 0x00
+#define PLL_CTRL1 0x01
+#define PLL_CTRL2 0x02
+#define SYSCLK_CTRL 0x03
+#define MOD_CLK_ENA 0x04
+#define MOD_RST_CTRL 0x05
+#define I2S_SR_CTRL 0x06
+#define I2S1LCK_CTRL 0x10
+#define I2S1_SDOUT_CTRL 0x11
+#define I2S1_SDIN_CTRL 0x12
+#define I2S1_MXR_SRC 0x13
+#define I2S1_VOL_CTRL1 0x14
+#define I2S1_VOL_CTRL2 0x15
+#define I2S1_VOL_CTRL3 0x16
+#define I2S1_VOL_CTRL4 0x17
+#define I2S1_MXR_GAIN 0x18
+#define ADC_DIG_CTRL 0x40
+#define ADC_VOL_CTRL 0x41
+#define HMIC_CTRL1 0x44
+#define HMIC_CTRL2 0x45
+#define HMIC_STATUS 0x46
+#define DAC_DIG_CTRL 0x48
+#define DAC_VOL_CTRL 0x49
+#define DAC_MXR_SRC 0x4C
+#define DAC_MXR_GAIN 0x4D
+#define ADC_APC_CTRL 0x50
+#define ADC_SRC 0x51
+#define ADC_SRCBST_CTRL 0x52
+#define OMIXER_DACA_CTRL 0x53
+#define OMIXER_SR 0x54
+#define OMIXER_BST1_CTRL 0x55
+#define HPOUT_CTRL 0x56
+#define SPKOUT_CTRL 0x58
+#define AC_DAC_DAPCTRL 0xA0
+#define AC_DAC_DAPHHPFC 0xA1
+#define AC_DAC_DAPLHPFC 0xA2
+#define AC_DAC_DAPLHAVC 0xA3
+#define AC_DAC_DAPLLAVC 0xA4
+#define AC_DAC_DAPRHAVC 0xA5
+#define AC_DAC_DAPRLAVC 0xA6
+#define AC_DAC_DAPHGDEC 0xA7
+#define AC_DAC_DAPLGDEC 0xA8
+#define AC_DAC_DAPHGATC 0xA9
+#define AC_DAC_DAPLGATC 0xAA
+#define AC_DAC_DAPHETHD 0xAB
+#define AC_DAC_DAPLETHD 0xAC
+#define AC_DAC_DAPHGKPA 0xAD
+#define AC_DAC_DAPLGKPA 0xAE
+#define AC_DAC_DAPHGOPA 0xAF
+#define AC_DAC_DAPLGOPA 0xB0
+#define AC_DAC_DAPOPT 0xB1
+#define DAC_DAP_ENA 0xB5
+
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+
+const uint8_t regs[] = {
+ CHIP_AUDIO_RS ,
+ PLL_CTRL1 ,
+ PLL_CTRL2 ,
+ SYSCLK_CTRL ,
+ MOD_CLK_ENA ,
+ MOD_RST_CTRL ,
+ I2S_SR_CTRL ,
+ I2S1LCK_CTRL ,
+ I2S1_SDOUT_CTRL ,
+ I2S1_SDIN_CTRL ,
+ I2S1_MXR_SRC ,
+ I2S1_VOL_CTRL1 ,
+ I2S1_VOL_CTRL2 ,
+ I2S1_VOL_CTRL3 ,
+ I2S1_VOL_CTRL4 ,
+ I2S1_MXR_GAIN ,
+ ADC_DIG_CTRL ,
+ ADC_VOL_CTRL ,
+ HMIC_CTRL1 ,
+ HMIC_CTRL2 ,
+ HMIC_STATUS ,
+ DAC_DIG_CTRL ,
+ DAC_VOL_CTRL ,
+ DAC_MXR_SRC ,
+ DAC_MXR_GAIN ,
+ ADC_APC_CTRL ,
+ ADC_SRC ,
+ ADC_SRCBST_CTRL ,
+ OMIXER_DACA_CTRL ,
+ OMIXER_SR ,
+ OMIXER_BST1_CTRL ,
+ HPOUT_CTRL ,
+ SPKOUT_CTRL ,
+ AC_DAC_DAPCTRL ,
+ AC_DAC_DAPHHPFC ,
+ AC_DAC_DAPLHPFC ,
+ AC_DAC_DAPLHAVC ,
+ AC_DAC_DAPLLAVC ,
+ AC_DAC_DAPRHAVC ,
+ AC_DAC_DAPRLAVC ,
+ AC_DAC_DAPHGDEC ,
+ AC_DAC_DAPLGDEC ,
+ AC_DAC_DAPHGATC ,
+ AC_DAC_DAPLGATC ,
+ AC_DAC_DAPHETHD ,
+ AC_DAC_DAPLETHD ,
+ AC_DAC_DAPHGKPA ,
+ AC_DAC_DAPLGKPA ,
+ AC_DAC_DAPHGOPA ,
+ AC_DAC_DAPLGOPA ,
+ AC_DAC_DAPOPT ,
+ DAC_DAP_ENA
+};
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::WriteReg(uint8_t reg, uint16_t val)
+{
+ _TwoWireInstance->beginTransmission(AC101_ADDR);
+ _TwoWireInstance->write(reg);
+ _TwoWireInstance->write(uint8_t((val >> 8) & 0xff));
+ _TwoWireInstance->write(uint8_t(val & 0xff));
+ return 0 == _TwoWireInstance->endTransmission(true);
+}
+
+uint16_t AC101::ReadReg(uint8_t reg)
+{
+ _TwoWireInstance->beginTransmission(AC101_ADDR);
+ _TwoWireInstance->write(reg);
+ _TwoWireInstance->endTransmission(false);
+
+ uint16_t val = 0u;
+ if (2 == _TwoWireInstance->requestFrom(uint16_t(AC101_ADDR), uint8_t(2)))
+ {
+ val = uint16_t(_TwoWireInstance->read() << 8) + uint16_t(_TwoWireInstance->read());
+ }
+ _TwoWireInstance->endTransmission(true);
+ return val;
+}
+//----------------------------------------------------------------------------------------------------------------------
+AC101::AC101( TwoWire *TwoWireInstance ){
+ _TwoWireInstance = TwoWireInstance;
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::begin(int32_t sda, int32_t scl, uint32_t frequency) {
+ bool ok;
+ if((sda >= 0) && (scl >= 0)){
+ ok = _TwoWireInstance->begin(sda, scl, frequency);
+ }
+ else {
+ ok = true;
+ }
+
+ // Reset all registers, readback default as sanity check
+ ok &= WriteReg(CHIP_AUDIO_RS, 0x123);
+ delay(100);
+ ok &= 0x0101 == ReadReg(CHIP_AUDIO_RS);
+ ok &= WriteReg(SPKOUT_CTRL, 0xe880);
+ // Enable the PLL from 256*44.1KHz MCLK source
+ ok &= WriteReg(PLL_CTRL1, 0x0141);
+ uint16_t N = 48 << 4; /* 512 / (M * (2*K+1)) / (CHANNELS * WORD_SIZE) -> 512 / 3 * (2 * 16) */
+ uint16_t PLL_EN = 1 << 15;
+ uint16_t N_f = 0<<0; /* 0.2 N */
+ ok &= WriteReg(PLL_CTRL2, N | PLL_EN | N_f);
+
+ // Clocking system
+ uint16_t PLLCLK_ENA = 1<<15; /* 0: Disable, 1: Enable */
+#ifdef BCLK
+ uint16_t PLL_CLK = 0x2 << 12; /* bclk1 */
+ uint16_t I2S1CLK_SRC = 0x3<<8; /* PLL */
+#else
+ uint16_t PLL_CLK = 0x0 << 12; /* MCLK1 */
+ uint16_t I2S1CLK_SRC = 0x0<<8; /* MLCK1 */
+#endif
+ uint16_t I2S1CLK_ENA = 1<<11; /* 0: Disable, 1: Enable */
+
+ uint16_t SYSCLK_ENA = 1<<3;
+ ok &= WriteReg(SYSCLK_CTRL, PLLCLK_ENA|PLL_CLK| I2S1CLK_ENA|I2S1CLK_SRC|SYSCLK_ENA/*0x8b08*/);
+
+ ok &= WriteReg(MOD_CLK_ENA, 0x800c);
+ ok &= WriteReg(MOD_RST_CTRL, 0x800c);
+
+ // Set default at I2S, 44.1KHz, 16bit
+ ok &= SetI2sSampleRate(SAMPLE_RATE_44100);
+ ok &= SetI2sClock(BCLK_DIV_8, false, LRCK_DIV_32, false);
+ ok &= SetI2sMode(MODE_SLAVE);
+ ok &= SetI2sWordSize(WORD_SIZE_16_BITS);
+ ok &= SetI2sFormat(DATA_FORMAT_I2S);
+
+ // AIF config
+ ok &= WriteReg(I2S1_SDOUT_CTRL, 0xc000);
+ ok &= WriteReg(I2S1_SDIN_CTRL, 0xc000);
+ ok &= WriteReg(I2S1_MXR_SRC, 0x2200);
+
+ ok &= WriteReg(ADC_SRCBST_CTRL, 0xccc4);
+ ok &= WriteReg(ADC_SRC, 0x1040);
+ ok &= WriteReg(ADC_DIG_CTRL, 0x8000);
+ ok &= WriteReg(ADC_APC_CTRL, 0xbbc3);
+
+ // Path Configuration
+ ok &= WriteReg(DAC_MXR_SRC, 0xcc00);
+ ok &= WriteReg(DAC_DIG_CTRL, 0x8000);
+ ok &= WriteReg(OMIXER_SR, 0x0081);
+ ok &= WriteReg(OMIXER_DACA_CTRL, 0xf080);
+
+ ok &= SetMode( MODE_DAC );
+
+ return ok;
+}
+//----------------------------------------------------------------------------------------------------------------------
+void AC101::DumpRegisters() {
+ for (size_t i = 0; i < ARRAY_SIZE(regs); ++i){
+ Serial.print(regs[i], HEX);
+ Serial.print(" = ");
+ Serial.println(ReadReg(regs[i]), HEX);
+ }
+}
+//----------------------------------------------------------------------------------------------------------------------
+uint8_t AC101::GetVolumeSpeaker() {
+ // Times 2, to scale to same range as headphone volume
+ return (ReadReg(SPKOUT_CTRL) & 31) * 2;
+}
+
+bool AC101::SetVolumeSpeaker(uint8_t volume) {
+ // Divide by 2, as it is scaled to same range as headphone volume
+ volume /= 2;
+ if(volume > 31) volume = 31;
+
+ uint16_t val = ReadReg(SPKOUT_CTRL);
+ val &= ~31;
+ val |= volume;
+ return WriteReg(SPKOUT_CTRL, val);
+}
+//----------------------------------------------------------------------------------------------------------------------
+uint8_t AC101::GetVolumeHeadphone() {
+ return (ReadReg(HPOUT_CTRL) >> 4) & 63;
+}
+
+bool AC101::SetVolumeHeadphone(uint8_t volume) {
+ if(volume > 63) volume = 63;
+
+ uint16_t val = ReadReg(HPOUT_CTRL);
+ val &= ~63U << 4;
+ val |= volume << 4;
+ return WriteReg(HPOUT_CTRL, val);
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::SetI2sSampleRate(I2sSampleRate_t rate) {
+ return WriteReg(I2S_SR_CTRL, rate);
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::SetI2sMode(I2sMode_t mode) {
+ uint16_t val = ReadReg(I2S1LCK_CTRL);
+ val &= ~0x8000;
+ val |= uint16_t(mode) << 15;
+ return WriteReg(I2S1LCK_CTRL, val);
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::SetI2sWordSize(I2sWordSize_t size) {
+ uint16_t val = ReadReg(I2S1LCK_CTRL);
+ val &= ~0x0030;
+ val |= uint16_t(size) << 4;
+ return WriteReg(I2S1LCK_CTRL, val);
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::SetI2sFormat(I2sFormat_t format) {
+ uint16_t val = ReadReg(I2S1LCK_CTRL);
+ val &= ~0x000C;
+ val |= uint16_t(format) << 2;
+ return WriteReg(I2S1LCK_CTRL, val);
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::SetI2sClock(I2sBitClockDiv_t bitClockDiv, bool bitClockInv, I2sLrClockDiv_t lrClockDiv, bool lrClockInv) {
+ uint16_t val = ReadReg(I2S1LCK_CTRL);
+ val &= ~0x7FC0;
+ val |= uint16_t(bitClockInv ? 1 : 0) << 14;
+ val |= uint16_t(bitClockDiv) << 9;
+ val |= uint16_t(lrClockInv ? 1 : 0) << 13;
+ val |= uint16_t(lrClockDiv) << 6;
+ return WriteReg(I2S1LCK_CTRL, val);
+}
+//----------------------------------------------------------------------------------------------------------------------
+bool AC101::SetMode(Mode_t mode) {
+ bool ok = true;
+ if(MODE_LINE == mode) {
+ ok &= WriteReg(ADC_SRC, 0x0408);
+ ok &= WriteReg(ADC_DIG_CTRL, 0x8000);
+ ok &= WriteReg(ADC_APC_CTRL, 0x3bc0);
+ }
+
+ if((MODE_ADC == mode) or (MODE_ADC_DAC == mode) or (MODE_LINE == mode)) {
+ ok &= WriteReg(MOD_CLK_ENA, 0x800c);
+ ok &= WriteReg(MOD_RST_CTRL, 0x800c);
+ }
+
+ if((MODE_DAC == mode) or (MODE_ADC_DAC == mode) or (MODE_LINE == mode)) {
+ // Enable Headphone output
+ ok &= WriteReg(OMIXER_DACA_CTRL, 0xff80);
+ ok &= WriteReg(HPOUT_CTRL, 0xc3c1);
+ ok &= WriteReg(HPOUT_CTRL, 0xcb00);
+ delay(100);
+ ok &= WriteReg(HPOUT_CTRL, 0xfbc0);
+ ok &= SetVolumeHeadphone(30);
+
+ // Enable Speaker output
+ ok &= WriteReg(SPKOUT_CTRL, 0xeabd);
+ delay(10);
+ ok &= SetVolumeSpeaker(30);
+ }
+ return ok;
+}
diff --git a/lib/ESP32-audioI2S/examples/AC101/AC101.h b/lib/ESP32-audioI2S/examples/AC101/AC101.h
new file mode 100644
index 0000000..f34127b
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/AC101/AC101.h
@@ -0,0 +1,166 @@
+/*
+ AC101 - An AC101 Codec driver library for Arduino
+ Copyright (C) 2019, Ivo Pullens, Emmission
+
+ Inspired by:
+ https://github.com/donny681/esp-adf/tree/master/components/audio_hal/driver/AC101
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+*/
+
+#ifndef AC101_H
+#define AC101_H
+
+#include
+#include
+#include
+
+class AC101
+{
+public:
+ typedef enum {
+ SAMPLE_RATE_8000 = 0x0000,
+ SAMPLE_RATE_11052 = 0x1000,
+ SAMPLE_RATE_12000 = 0x2000,
+ SAMPLE_RATE_16000 = 0x3000,
+ SAMPLE_RATE_22050 = 0x4000,
+ SAMPLE_RATE_24000 = 0x5000,
+ SAMPLE_RATE_32000 = 0x6000,
+ SAMPLE_RATE_44100 = 0x7000,
+ SAMPLE_RATE_48000 = 0x8000,
+ SAMPLE_RATE_96000 = 0x9000,
+ SAMPLE_RATE_192000 = 0xa000,
+ } I2sSampleRate_t;
+
+ typedef enum {
+ MODE_MASTER = 0x00,
+ MODE_SLAVE = 0x01,
+ } I2sMode_t;
+
+ typedef enum {
+ WORD_SIZE_8_BITS = 0x00,
+ WORD_SIZE_16_BITS = 0x01,
+ WORD_SIZE_20_BITS = 0x02,
+ WORD_SIZE_24_BITS = 0x03,
+ } I2sWordSize_t;
+
+ typedef enum {
+ DATA_FORMAT_I2S = 0x00,
+ DATA_FORMAT_LEFT = 0x01,
+ DATA_FORMAT_RIGHT = 0x02,
+ DATA_FORMAT_DSP = 0x03,
+ } I2sFormat_t;
+
+ typedef enum {
+ BCLK_DIV_1 = 0x0,
+ BCLK_DIV_2 = 0x1,
+ BCLK_DIV_4 = 0x2,
+ BCLK_DIV_6 = 0x3,
+ BCLK_DIV_8 = 0x4,
+ BCLK_DIV_12 = 0x5,
+ BCLK_DIV_16 = 0x6,
+ BCLK_DIV_24 = 0x7,
+ BCLK_DIV_32 = 0x8,
+ BCLK_DIV_48 = 0x9,
+ BCLK_DIV_64 = 0xa,
+ BCLK_DIV_96 = 0xb,
+ BCLK_DIV_128 = 0xc,
+ BCLK_DIV_192 = 0xd,
+ } I2sBitClockDiv_t;
+
+ typedef enum {
+ LRCK_DIV_16 = 0x0,
+ LRCK_DIV_32 = 0x1,
+ LRCK_DIV_64 = 0x2,
+ LRCK_DIV_128 = 0x3,
+ LRCK_DIV_256 = 0x4,
+ } I2sLrClockDiv_t;
+
+
+ typedef enum {
+ MODE_ADC,
+ MODE_DAC,
+ MODE_ADC_DAC,
+ MODE_LINE
+ } Mode_t;
+
+ // Constructor.
+ AC101(TwoWire *TwoWireInstance = &Wire);
+
+ // Initialize codec, using provided I2C pins and bus frequency.
+ // @return True on success, false on failure.
+ bool begin(int32_t sda = -1, int32_t scl = -1, uint32_t frequency = 400000);
+
+ // Get speaker volume.
+ // @return Speaker volume, [63..0] for [0..-43.5] [dB], in increments of 2.
+ uint8_t GetVolumeSpeaker();
+
+ // Set speaker volume.
+ // @param volume Target volume, [63..0] for [0..-43.5] [dB], in increments of 2.
+ // @return True on success, false on failure.
+ bool SetVolumeSpeaker(uint8_t volume);
+
+ // Get headphone volume.
+ // @return Headphone volume, [63..0] for [0..-62] [dB]
+ uint8_t GetVolumeHeadphone();
+
+ // Set headphone volume
+ // @param volume Target volume, [63..0] for [0..-62] [dB]
+ // @return True on success, false on failure.
+ bool SetVolumeHeadphone(uint8_t volume);
+
+ // Configure I2S samplerate.
+ // @param rate Samplerate.
+ // @return True on success, false on failure.
+ bool SetI2sSampleRate(I2sSampleRate_t rate);
+
+ // Configure I2S mode (master/slave).
+ // @param mode Mode.
+ // @return True on success, false on failure.
+ bool SetI2sMode(I2sMode_t mode);
+
+ // Configure I2S word size (8/16/20/24 bits).
+ // @param size Word size.
+ // @return True on success, false on failure.
+ bool SetI2sWordSize(I2sWordSize_t size);
+
+ // Configure I2S format (I2S/Left/Right/Dsp).
+ // @param format I2S format.
+ // @return True on success, false on failure.
+ bool SetI2sFormat(I2sFormat_t format);
+
+ // Configure I2S clock.
+ // @param bitClockDiv I2S1CLK/BCLK1 ratio.
+ // @param bitClockInv I2S1 BCLK Polarity.
+ // @param lrClockDiv BCLK1/LRCK ratio.
+ // @param lrClockInv I2S1 LRCK Polarity.
+ // @return True on success, false on failure.
+ bool SetI2sClock(I2sBitClockDiv_t bitClockDiv, bool bitClockInv, I2sLrClockDiv_t lrClockDiv, bool lrClockInv);
+
+ // Configure the mode (Adc/Dac/Adc+Dac/Line)
+ // @param mode Operating mode.
+ // @return True on success, false on failure.
+ bool SetMode(Mode_t mode);
+
+ // Dumpt the current register configuration to serial.
+ void DumpRegisters();
+
+protected:
+ bool WriteReg(uint8_t reg, uint16_t val);
+ uint16_t ReadReg(uint8_t reg);
+private:
+ TwoWire *_TwoWireInstance = NULL; // TwoWire Instance
+};
+
+#endif
diff --git a/lib/ESP32-audioI2S/examples/AC101/main.cpp b/lib/ESP32-audioI2S/examples/AC101/main.cpp
new file mode 100644
index 0000000..711ed85
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/AC101/main.cpp
@@ -0,0 +1,116 @@
+#include "Arduino.h"
+#include "WiFi.h"
+#include "SPI.h"
+#include "SD.h"
+#include "FS.h"
+#include "Wire.h"
+#include "AC101.h"
+#include "Audio.h"
+
+// I2S GPIOs, the names refer on AC101, AS1 Audio Kit V2.2 2379
+#define I2S_DSIN 35 // pin not used
+#define I2S_BCLK 27
+#define I2S_LRC 26
+#define I2S_MCLK 0
+#define I2S_DOUT 25
+
+// I2C GPIOs
+#define IIC_CLK 32
+#define IIC_DATA 33
+
+// amplifier enable
+#define GPIO_PA_EN 21
+
+//Switch S1: 1-OFF, 2-ON, 3-ON, 4-OFF, 5-OFF
+
+String ssid = "*****";
+String password = "*****";
+
+static AC101 dac; // AC101
+int volume = 40; // 0...100
+
+Audio audio;
+
+//#####################################################################
+
+void setup()
+{
+ Serial.begin(115200);
+
+ WiFi.mode(WIFI_STA);
+ WiFi.begin(ssid.c_str(), password.c_str());
+
+ while (WiFi.status() != WL_CONNECTED)
+ {
+ Serial.print(".");
+ delay(100);
+ }
+
+ Serial.printf_P(PSTR("Connected\r\nRSSI: "));
+ Serial.print(WiFi.RSSI());
+ Serial.print(" IP: ");
+ Serial.println(WiFi.localIP());
+
+ Serial.printf("Connect to DAC codec... ");
+ while (not dac.begin(IIC_DATA, IIC_CLK))
+ {
+ Serial.printf("Failed!\n");
+ delay(1000);
+ }
+ Serial.printf("OK\n");
+
+ dac.SetVolumeSpeaker(volume);
+ dac.SetVolumeHeadphone(volume);
+// ac.DumpRegisters();
+
+ // Enable amplifier
+ pinMode(GPIO_PA_EN, OUTPUT);
+ digitalWrite(GPIO_PA_EN, HIGH);
+
+ audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT, I2S_MCLK);
+ audio.setVolume(10); // 0...21
+
+ audio.connecttohost("http://mp3channels.webradio.antenne.de:80/oldies-but-goldies");
+// audio.connecttohost("http://dg-rbb-http-dus-dtag-cdn.cast.addradio.de/rbb/antennebrandenburg/live/mp3/128/stream.mp3");
+// audio.connecttospeech("Wenn die Hunde schlafen, kann der Wolf gut Schafe stehlen.", "de");
+
+}
+
+//-----------------------------------------------------------------------
+
+void loop(){
+ vTaskDelay(1);
+ audio.loop();
+}
+
+// optional
+void audio_info(const char *info){
+ Serial.print("info "); Serial.println(info);
+}
+void audio_id3data(const char *info){ //id3 metadata
+ Serial.print("id3data ");Serial.println(info);
+}
+void audio_eof_mp3(const char *info){ //end of file
+ Serial.print("eof_mp3 ");Serial.println(info);
+}
+void audio_showstation(const char *info){
+ Serial.print("station ");Serial.println(info);
+}
+void audio_showstreamtitle(const char *info){
+ Serial.print("streamtitle ");Serial.println(info);
+}
+void audio_bitrate(const char *info){
+ Serial.print("bitrate ");Serial.println(info);
+}
+void audio_commercial(const char *info){ //duration in sec
+ Serial.print("commercial ");Serial.println(info);
+}
+void audio_icyurl(const char *info){ //homepage
+ Serial.print("icyurl ");Serial.println(info);
+}
+void audio_lasthost(const char *info){ //stream URL played
+ Serial.print("lasthost ");Serial.println(info);
+}
+void audio_eof_speech(const char *info){
+ Serial.print("eof_speech ");Serial.println(info);
+}
\ No newline at end of file
diff --git a/lib/ESP32-audioI2S/examples/DLNA/.vscode/c_cpp_properties.json b/lib/ESP32-audioI2S/examples/DLNA/.vscode/c_cpp_properties.json
new file mode 100644
index 0000000..ce197c6
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/.vscode/c_cpp_properties.json
@@ -0,0 +1,504 @@
+//
+// !!! WARNING !!! AUTO-GENERATED FILE!
+// PLEASE DO NOT MODIFY IT AND USE "platformio.ini":
+// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
+//
+{
+ "configurations": [
+ {
+ "name": "PlatformIO",
+ "includePath": [
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/include",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/src",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/lib/websrv",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SD/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SPI/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/FS/src",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/libdeps/esp32dev/Arduino_JSON/src",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/libdeps/esp32dev/SoapESP32/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WiFi/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/newlib/platform_include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/include/esp_additions/freertos",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/port/xtensa/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/include/esp_additions",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/include/soc",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/include/soc/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/port/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/port/esp32/private_include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/heap/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/log/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/include/apps",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/include/apps/sntp",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/lwip/src/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/port/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/port/esp32/include/arch",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/soc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/soc/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/soc/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/hal/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/hal/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/hal/platform_port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rom/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rom/include/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rom/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_system/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_system/port/soc",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_system/port/public_compat",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/xtensa/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/xtensa/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/driver/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/driver/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_pm/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_ringbuf/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/efuse/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/efuse/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/vfs/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_wifi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_event/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_netif/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_eth/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/tcpip_adapter/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_phy/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_phy/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_ipc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/app_trace/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_timer/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mbedtls/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mbedtls/mbedtls/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mbedtls/esp_crt_bundle/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/app_update/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/spi_flash/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bootloader_support/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/nvs_flash/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/pthread/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_gdbstub/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_gdbstub/xtensa",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_gdbstub/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/espcoredump/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/espcoredump/include/port/xtensa",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wpa_supplicant/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wpa_supplicant/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wpa_supplicant/esp_supplicant/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/ieee802154/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/console",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/asio/asio/asio/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/asio/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/osi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/include/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/api/include/api",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/btc/profile/esp/blufi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/btc/profile/esp/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_common/tinycrypt/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core/storage",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/btc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/client/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/server/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/api/core/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/api/models/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/api",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/cbor/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/unity/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/unity/unity/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/cmock/CMock/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/coap/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/coap/libcoap/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/nghttp/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/nghttp/nghttp2/lib/includes",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-tls",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-tls/esp-tls-crypto",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_adc_cal/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hid/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/tcp_transport/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_http_client/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_http_server/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_https_ota/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_https_server/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_lcd/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_lcd/interface",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protobuf-c/protobuf-c",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protocomm/include/common",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protocomm/include/security",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protocomm/include/transports",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mdns/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_local_ctrl/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/sdmmc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_serial_slave_link/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_websocket_client/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/expat/expat/expat/lib",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/expat/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wear_levelling/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fatfs/diskio",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fatfs/vfs",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fatfs/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freemodbus/common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/idf_test/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/idf_test/include/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/jsmn/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json/cJSON",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/libsodium/libsodium/src/libsodium/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/libsodium/port_include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mqtt/esp-mqtt/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/openssl/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/perfmon/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/spiffs/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/ulp/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wifi_provisioning/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/rmaker_common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json_parser/upstream/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json_parser/upstream",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json_generator/upstream",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_schedule/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rainmaker/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/gpio_button/button/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/qrcode/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/ws2812_led",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/dotprod/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/support/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/hann/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman_harris/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman_nuttall/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/nuttall/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/flat_top/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/iir/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/fir/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/add/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/sub/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/mul/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/addc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/mulc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/sqrt/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/matrix/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/fft/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/dct/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/conv/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/kalman/ekf/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/kalman/ekf_imu13states/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_littlefs/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/tool",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/typedef",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/image",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/math",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/nn",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/layer",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/detect",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/model_zoo",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-sr/src/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-sr/esp-tts/esp_tts_chinese/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-sr/include/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp32-camera/driver/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp32-camera/conversions/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fb_gfx/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/qio_qspi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/cores/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/variants/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/ArduinoOTA/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/AsyncUDP/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/BLE/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/BluetoothSerial/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/DNSServer/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/EEPROM/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/ESP32/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/ESPmDNS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Ethernet/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/FFat/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/HTTPClient/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/HTTPUpdate/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/HTTPUpdateServer/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/I2S/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/LittleFS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/NetBIOS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Preferences/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/RainMaker/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SD_MMC/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SPIFFS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SimpleBLE/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Ticker/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/USB/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Update/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WebServer/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WiFiClientSecure/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WiFiProv/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Wire/src",
+ ""
+ ],
+ "browse": {
+ "limitSymbolsToIncludedHeaders": true,
+ "path": [
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/include",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/src",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/lib/websrv",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SD/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SPI/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/FS/src",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/libdeps/esp32dev/Arduino_JSON/src",
+ "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/libdeps/esp32dev/SoapESP32/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WiFi/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/newlib/platform_include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/include/esp_additions/freertos",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/port/xtensa/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freertos/include/esp_additions",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/include/soc",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/include/soc/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/port/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hw_support/port/esp32/private_include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/heap/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/log/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/include/apps",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/include/apps/sntp",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/lwip/src/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/port/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/lwip/port/esp32/include/arch",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/soc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/soc/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/soc/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/hal/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/hal/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/hal/platform_port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rom/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rom/include/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rom/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_system/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_system/port/soc",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_system/port/public_compat",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/xtensa/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/xtensa/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/driver/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/driver/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_pm/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_ringbuf/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/efuse/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/efuse/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/vfs/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_wifi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_event/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_netif/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_eth/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/tcpip_adapter/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_phy/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_phy/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_ipc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/app_trace/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_timer/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mbedtls/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mbedtls/mbedtls/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mbedtls/esp_crt_bundle/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/app_update/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/spi_flash/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bootloader_support/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/nvs_flash/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/pthread/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_gdbstub/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_gdbstub/xtensa",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_gdbstub/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/espcoredump/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/espcoredump/include/port/xtensa",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wpa_supplicant/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wpa_supplicant/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wpa_supplicant/esp_supplicant/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/ieee802154/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/console",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/asio/asio/asio/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/asio/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/osi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/include/esp32/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/api/include/api",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/btc/profile/esp/blufi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/common/btc/profile/esp/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/host/bluedroid/api/include/api",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_common/tinycrypt/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_core/storage",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/btc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/client/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/mesh_models/server/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/api/core/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/api/models/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/bt/esp_ble_mesh/api",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/cbor/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/unity/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/unity/unity/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/cmock/CMock/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/coap/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/coap/libcoap/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/nghttp/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/nghttp/nghttp2/lib/includes",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-tls",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-tls/esp-tls-crypto",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_adc_cal/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_hid/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/tcp_transport/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_http_client/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_http_server/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_https_ota/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_https_server/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_lcd/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_lcd/interface",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protobuf-c/protobuf-c",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protocomm/include/common",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protocomm/include/security",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/protocomm/include/transports",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mdns/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_local_ctrl/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/sdmmc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_serial_slave_link/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_websocket_client/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/expat/expat/expat/lib",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/expat/port/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wear_levelling/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fatfs/diskio",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fatfs/vfs",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fatfs/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/freemodbus/common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/idf_test/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/idf_test/include/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/jsmn/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json/cJSON",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/libsodium/libsodium/src/libsodium/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/libsodium/port_include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/mqtt/esp-mqtt/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/openssl/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/perfmon/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/spiffs/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/ulp/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/wifi_provisioning/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/rmaker_common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json_parser/upstream/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json_parser/upstream",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/json_generator/upstream",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_schedule/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_rainmaker/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/gpio_button/button/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/qrcode/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/ws2812_led",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/dotprod/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/support/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/hann/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman_harris/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/blackman_nuttall/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/nuttall/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/windows/flat_top/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/iir/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/fir/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/add/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/sub/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/mul/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/addc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/mulc/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/math/sqrt/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/matrix/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/fft/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/dct/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/conv/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/common/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/kalman/ekf/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dsp/modules/kalman/ekf_imu13states/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp_littlefs/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/tool",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/typedef",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/image",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/math",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/nn",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/layer",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/detect",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-dl/include/model_zoo",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-sr/src/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-sr/esp-tts/esp_tts_chinese/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp-sr/include/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp32-camera/driver/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/esp32-camera/conversions/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/include/fb_gfx/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/tools/sdk/esp32/qio_qspi/include",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/cores/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/variants/esp32",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/ArduinoOTA/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/AsyncUDP/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/BLE/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/BluetoothSerial/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/DNSServer/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/EEPROM/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/ESP32/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/ESPmDNS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Ethernet/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/FFat/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/HTTPClient/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/HTTPUpdate/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/HTTPUpdateServer/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/I2S/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/LittleFS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/NetBIOS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Preferences/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/RainMaker/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SD_MMC/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SPIFFS/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/SimpleBLE/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Ticker/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/USB/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Update/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WebServer/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WiFiClientSecure/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/WiFiProv/src",
+ "/home/wolle/.platformio/packages/framework-arduinoespressif32@src-f2ea83e2545300b10a69ff44ef9dc6cd/libraries/Wire/src",
+ ""
+ ]
+ },
+ "defines": [
+ "PLATFORMIO=60105",
+ "ARDUINO_ESP32_DEV",
+ "CORE_DEBUG_LEVEL=3",
+ "CONFIG_ARDUHAL_LOG_COLORS",
+ "BOARD_HAS_PSRAM",
+ "ARDUINO_RUNNING_CORE=3",
+ "ARDUINO_EVENT_RUNNING_CORE=1",
+ "HAVE_CONFIG_H",
+ "MBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"",
+ "UNITY_INCLUDE_CONFIG_H",
+ "WITH_POSIX",
+ "_GNU_SOURCE",
+ "IDF_VER=\"v4.4.2\"",
+ "ESP_PLATFORM",
+ "_POSIX_READER_WRITER_LOCKS",
+ "ARDUINO_ARCH_ESP32",
+ "ESP32",
+ "F_CPU=240000000L",
+ "ARDUINO=10812",
+ "ARDUINO_VARIANT=\"esp32\"",
+ "ARDUINO_BOARD=\"Espressif ESP32 Dev Module\"",
+ "ARDUINO_PARTITION_default",
+ ""
+ ],
+ "cStandard": "c99",
+ "cppStandard": "c++11",
+ "compilerPath": "/home/wolle/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc",
+ "compilerArgs": [
+ "-mlongcalls",
+ ""
+ ]
+ }
+ ],
+ "version": 4
+}
diff --git a/lib/ESP32-audioI2S/examples/DLNA/.vscode/extensions.json b/lib/ESP32-audioI2S/examples/DLNA/.vscode/extensions.json
new file mode 100644
index 0000000..080e70d
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/.vscode/extensions.json
@@ -0,0 +1,10 @@
+{
+ // See http://go.microsoft.com/fwlink/?LinkId=827846
+ // for the documentation about the extensions.json format
+ "recommendations": [
+ "platformio.platformio-ide"
+ ],
+ "unwantedRecommendations": [
+ "ms-vscode.cpptools-extension-pack"
+ ]
+}
diff --git a/lib/ESP32-audioI2S/examples/DLNA/.vscode/launch.json b/lib/ESP32-audioI2S/examples/DLNA/.vscode/launch.json
new file mode 100644
index 0000000..12a04f3
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/.vscode/launch.json
@@ -0,0 +1,44 @@
+// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
+//
+// PIO Unified Debugger
+//
+// Documentation: https://docs.platformio.org/page/plus/debugging.html
+// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html
+
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "platformio-debug",
+ "request": "launch",
+ "name": "PIO Debug",
+ "executable": "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/build/esp32dev/firmware.elf",
+ "projectEnvName": "esp32dev",
+ "toolchainBinDir": "/home/wolle/.platformio/packages/toolchain-xtensa-esp32/bin",
+ "internalConsoleOptions": "openOnSessionStart",
+ "preLaunchTask": {
+ "type": "PlatformIO",
+ "task": "Pre-Debug"
+ }
+ },
+ {
+ "type": "platformio-debug",
+ "request": "launch",
+ "name": "PIO Debug (skip Pre-Debug)",
+ "executable": "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/build/esp32dev/firmware.elf",
+ "projectEnvName": "esp32dev",
+ "toolchainBinDir": "/home/wolle/.platformio/packages/toolchain-xtensa-esp32/bin",
+ "internalConsoleOptions": "openOnSessionStart"
+ },
+ {
+ "type": "platformio-debug",
+ "request": "launch",
+ "name": "PIO Debug (without uploading)",
+ "executable": "/media/wolle/DRIVE-N-GO/platformio-workspace/ESP32_WebServer/.pio/build/esp32dev/firmware.elf",
+ "projectEnvName": "esp32dev",
+ "toolchainBinDir": "/home/wolle/.platformio/packages/toolchain-xtensa-esp32/bin",
+ "internalConsoleOptions": "openOnSessionStart",
+ "loadMode": "manual"
+ }
+ ]
+}
diff --git a/lib/ESP32-audioI2S/examples/DLNA/additional_info/DLNA_web.jpg b/lib/ESP32-audioI2S/examples/DLNA/additional_info/DLNA_web.jpg
new file mode 100644
index 0000000..8414668
Binary files /dev/null and b/lib/ESP32-audioI2S/examples/DLNA/additional_info/DLNA_web.jpg differ
diff --git a/lib/ESP32-audioI2S/examples/DLNA/include/README b/lib/ESP32-audioI2S/examples/DLNA/include/README
new file mode 100644
index 0000000..194dcd4
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/include/README
@@ -0,0 +1,39 @@
+
+This directory is intended for project header files.
+
+A header file is a file containing C declarations and macro definitions
+to be shared between several project source files. You request the use of a
+header file in your project source file (C, C++, etc) located in `src` folder
+by including it, with the C preprocessing directive `#include'.
+
+```src/main.c
+
+#include "header.h"
+
+int main (void)
+{
+ ...
+}
+```
+
+Including a header file produces the same results as copying the header file
+into each source file that needs it. Such copying would be time-consuming
+and error-prone. With a header file, the related declarations appear
+in only one place. If they need to be changed, they can be changed in one
+place, and programs that include the header file will automatically use the
+new version when next recompiled. The header file eliminates the labor of
+finding and changing all the copies as well as the risk that a failure to
+find one copy will result in inconsistencies within a program.
+
+In C, the usual convention is to give header files names that end with `.h'.
+It is most portable to use only letters, digits, dashes, and underscores in
+header file names, and at most one dot.
+
+Read more about using header files in official GCC documentation:
+
+* Include Syntax
+* Include Operation
+* Once-Only Headers
+* Computed Includes
+
+https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
diff --git a/lib/ESP32-audioI2S/examples/DLNA/lib/README b/lib/ESP32-audioI2S/examples/DLNA/lib/README
new file mode 100644
index 0000000..6debab1
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/lib/README
@@ -0,0 +1,46 @@
+
+This directory is intended for project specific (private) libraries.
+PlatformIO will compile them to static libraries and link into executable file.
+
+The source code of each library should be placed in a an own separate directory
+("lib/your_library_name/[here are source files]").
+
+For example, see a structure of the following two libraries `Foo` and `Bar`:
+
+|--lib
+| |
+| |--Bar
+| | |--docs
+| | |--examples
+| | |--src
+| | |- Bar.c
+| | |- Bar.h
+| | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
+| |
+| |--Foo
+| | |- Foo.c
+| | |- Foo.h
+| |
+| |- README --> THIS FILE
+|
+|- platformio.ini
+|--src
+ |- main.c
+
+and a contents of `src/main.c`:
+```
+#include
+#include
+
+int main (void)
+{
+ ...
+}
+
+```
+
+PlatformIO Library Dependency Finder will find automatically dependent
+libraries scanning project source files.
+
+More information about PlatformIO Library Dependency Finder
+- https://docs.platformio.org/page/librarymanager/ldf.html
diff --git a/lib/ESP32-audioI2S/examples/DLNA/lib/websrv/websrv.cpp b/lib/ESP32-audioI2S/examples/DLNA/lib/websrv/websrv.cpp
new file mode 100644
index 0000000..2f6dd45
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/lib/websrv/websrv.cpp
@@ -0,0 +1,721 @@
+/*
+ * websrv.cpp
+ *
+ * Created on: 09.07.2017
+ * updated on: 19.10.2022
+ * Author: Wolle
+ */
+
+#include "websrv.h"
+
+//--------------------------------------------------------------------------------------------------------------
+WebSrv::WebSrv(String Name, String Version){
+ _Name=Name; _Version=Version;
+ method = HTTP_NONE;
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::show_not_found(){
+ cmdclient.print("HTTP/1.1 404 Not Found\n\n");
+ return;
+}
+//--------------------------------------------------------------------------------------------------------------
+String WebSrv::calculateWebSocketResponseKey(String sec_WS_key){
+ // input Sec-WebSocket-Key from client
+ // output Sec-WebSocket-Accept-Key (used in response message to client)
+ uint8_t sha1_result[20];
+ String concat = sec_WS_key + WS_sec_conKey;
+ mbedtls_sha1((unsigned char*)concat.c_str(), concat.length(), (unsigned char*) sha1_result );
+ return base64::encode(sha1_result, 20);
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::printWebSocketHeader(String wsRespKey){
+ String wsHeader = (String)"HTTP/1.1 101 Switching Protocols\r\n" +
+ "Upgrade: websocket\r\n" +
+ "Connection: Upgrade\r\n" +
+ "Sec-WebSocket-Accept: " + wsRespKey + "\r\n" +
+ "Access-Control-Allow-Origin: \r\n\r\n";
+ // "Sec-WebSocket-Protocol: chat\r\n\r\n";
+ //log_i("wsheader %s", wsHeader.c_str());
+ webSocketClient.print(wsHeader) ; // header sent
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::show(const char* pagename, int16_t len){
+ uint TCPCHUNKSIZE = 1024; // Max number of bytes per write
+ size_t pagelen=0, res=0; // Size of requested page
+ const unsigned char* p;
+ p = reinterpret_cast(pagename);
+ if(len==-1){
+ pagelen=strlen(pagename);
+ }
+ else{
+ if(len>0) pagelen = len;
+ }
+ while((*p=='\n') && (pagelen>0)){ // If page starts with newline:
+ p++; // Skip first character
+ pagelen--;
+ }
+ // HTTP header
+ String httpheader="";
+ httpheader += "HTTP/1.1 200 OK\r\n";
+ httpheader += "Connection: close\r\n";
+ httpheader += "Content-type: text/html\r\n";
+ httpheader += "Content-Length: " + String(pagelen, 10) + "\r\n";
+ httpheader += "Server: " + _Name+ "\r\n";
+ httpheader += "Cache-Control: max-age=86400\r\n";
+ httpheader += "Last-Modified: " + _Version + "\r\n\r\n";
+
+ cmdclient.print(httpheader) ; // header sent
+
+ sprintf(buff, "Length of page is %d", pagelen);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ // The content of the HTTP response follows the header:
+
+ while(pagelen){ // Loop through the output page
+ if (pagelen <= TCPCHUNKSIZE){ // Near the end?
+ res=cmdclient.write(p, pagelen); // Yes, send last part
+ if(res!=pagelen){
+ log_e("write error in webpage");
+ cmdclient.clearWriteError();
+ return;
+ }
+ pagelen = 0;
+ }
+ else{
+
+ res=cmdclient.write(p, TCPCHUNKSIZE); // Send part of the page
+
+ if(res!=TCPCHUNKSIZE){
+ log_e("write error in webpage");
+ cmdclient.clearWriteError();
+ return;
+ }
+ p += TCPCHUNKSIZE; // Update startpoint and rest of bytes
+ pagelen -= TCPCHUNKSIZE;
+ }
+ }
+ return;
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::streamfile(fs::FS &fs,const char* path){ // transfer file from SD to webbrowser
+ size_t bytesPerTransaction = 1024;
+ uint8_t transBuf[bytesPerTransaction], i=0;
+ size_t wIndex = 0, res=0, leftover=0;
+ if(!cmdclient.connected()){log_e("not connected"); return false;}
+ while(path[i] != 0){ // protect SD for invalid signs to avoid a crash!!
+ if(path[i] < 32)return false;
+ i++;
+ }
+ if(!fs.exists(path)) return false;
+ File file = fs.open(path, "r");
+ if(!file){
+ sprintf(buff, "Failed to open file for reading %s", path);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ show_not_found();
+ return false;
+ }
+ sprintf(buff, "Length of file %s is %d", path, file.size());
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+
+ // HTTP header
+ String httpheader="";
+ httpheader += "HTTP/1.1 200 OK\r\n";
+ httpheader += "Connection: close\r\n";
+ httpheader += "Content-type: " + getContentType(String(path)) +"\r\n";
+ httpheader += "Content-Length: " + String(file.size(),10) + "\r\n";
+ httpheader += "Server: " + _Name+ "\r\n";
+ httpheader += "Cache-Control: max-age=86400\r\n";
+ httpheader += "Last-Modified: " + _Version + "\r\n\r\n";
+
+ cmdclient.print(httpheader) ; // header sent
+
+ while(wIndex+bytesPerTransaction < file.size()){
+ file.read(transBuf, bytesPerTransaction);
+ res=cmdclient.write(transBuf, bytesPerTransaction);
+ wIndex+=res;
+ if(res!=bytesPerTransaction){
+ log_i("write error %s", path);
+ cmdclient.clearWriteError();
+ return false;
+ }
+ }
+ leftover=file.size()-wIndex;
+ file.read(transBuf, leftover);
+ res=cmdclient.write(transBuf, leftover);
+ wIndex+=res;
+ if(res!=leftover){
+ log_i("write error %s", path);
+ cmdclient.clearWriteError();
+ return false;
+ }
+ if(wIndex!=file.size()) log_e("file %s not correct sent", path);
+ file.close();
+ return true;
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::send(String msg, uint8_t opcode) { // sends text messages via websocket
+ return send(msg.c_str(), opcode);
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::send(const char *msg, uint8_t opcode) { // sends text messages via websocket
+ uint8_t headerLen = 2;
+
+ if(!hasclient_WS) {
+// log_e("can't send, websocketserver not connected");
+ return false;
+ }
+ size_t msgLen = strlen(msg);
+
+ if(msgLen > UINT16_MAX) {
+ log_e("send: message too long, greather than 64kB");
+ return false;
+ }
+
+ uint8_t fin = 1;
+ uint8_t rsv1 = 0;
+ uint8_t rsv2 = 0;
+ uint8_t rsv3 = 0;
+ uint8_t mask = 0;
+
+ buff[0] = (128 * fin) + (64 * rsv1) + (32 * rsv2) + (16 * rsv3) + opcode;
+ if(msgLen < 126) {
+ buff[1] = (128 * mask) + msgLen;
+ }
+ else {
+ headerLen = 4;
+ buff[1] = (128 * mask) + 126;
+ buff[2] = (msgLen >> 8) & 0xFF;
+ buff[3] = msgLen & 0xFF;
+ }
+
+ webSocketClient.write(buff, headerLen);
+ webSocketClient.write(msg, msgLen);
+
+ return true;
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::sendPing(){ // heartbeat, keep alive via websockets
+
+ if(!hasclient_WS) {
+ return;
+ }
+ uint8_t fin = 1;
+ uint8_t rsv1 = 0;
+ uint8_t rsv2 = 0;
+ uint8_t rsv3 = 0;
+ uint8_t mask = 0;
+
+ buff[0] = (128 * fin) + (64 * rsv1) + (32 * rsv2) + (16 * rsv3) + Ping_Frame;
+ buff[1] = (128 * mask) + 0;
+ webSocketClient.write(buff,2);
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::sendPong(){ // heartbeat, keep alive via websockets
+
+ if(!hasclient_WS) {
+ return;
+ }
+ uint8_t fin = 1;
+ uint8_t rsv1 = 0;
+ uint8_t rsv2 = 0;
+ uint8_t rsv3 = 0;
+ uint8_t mask = 0;
+
+ buff[0] = (128 * fin) + (64 * rsv1) + (32 * rsv2) + (16 * rsv3) + Pong_Frame;
+ buff[1] = (128 * mask) + 0;
+ webSocketClient.write(buff,2);
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::uploadB64image(fs::FS &fs,const char* path, uint32_t contentLength){ // transfer imagefile from webbrowser to SD
+ size_t bytesPerTransaction = 1024;
+ uint8_t tBuf[bytesPerTransaction];
+ uint16_t av, i, j;
+ uint32_t len = contentLength;
+ boolean f_werror=false;
+ String str="";
+ int n=0;
+ File file;
+ fs.remove(path); // Remove a previous version, otherwise data is appended the file again
+ file = fs.open(path, FILE_WRITE); // Open the file for writing (create it, if doesn't exist)
+
+ log_i("ContentLength %i", contentLength);
+ str = str + cmdclient.readStringUntil(','); // data:image/jpeg;base64,
+ len -= str.length();
+ while(cmdclient.available()){
+ av=cmdclient.available();
+ if(av==0) break;
+ if(av>bytesPerTransaction) av=bytesPerTransaction;
+ if(av>len) av=len;
+ len -= av;
+ i=0; j=0;
+ cmdclient.read(tBuf, av); // b64 decode
+ while(i>16;
+ tBuf[j+1]= n>>8 & 0xFF;
+ tBuf[j+2]= n & 0xFF;
+ i+=4;
+ j+=3;
+ }
+ if(tBuf[j]=='=') j--;
+ if(tBuf[j]=='=') j--; // remove =
+
+ if(file.write(tBuf, j)!=j) f_werror=true; // write error?
+ if(len == 0) break;
+ }
+ cmdclient.readStringUntil('\n'); // read the remains, first \n
+ cmdclient.readStringUntil('\n'); // read the remains webkit\n
+ file.close();
+ if(f_werror) {
+ sprintf(buff, "File: %s write error", path);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ return false;
+ }
+ sprintf(buff, "File: %s written, FileSize: %d", path, contentLength);
+ //log_i(buff);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ return true;
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::uploadfile(fs::FS &fs,const char* path, uint32_t contentLength){ // transfer file from webbrowser to sd
+ size_t bytesPerTransaction = 1024;
+ uint8_t tBuf[bytesPerTransaction];
+ uint16_t av;
+ uint32_t len = contentLength;
+ boolean f_werror=false;
+ String str="";
+ File file;
+ if(fs.exists(path)) fs.remove(path); // Remove a previous version, otherwise data is appended the file again
+
+ file = fs.open(path, FILE_WRITE); // Open the file for writing in SD (create it, if doesn't exist)
+ while(cmdclient.available()){
+ av=cmdclient.available();
+ if(av>bytesPerTransaction) av=bytesPerTransaction;
+ if(av>len) av=len;
+ len -= av;
+ cmdclient.read(tBuf, av);
+ if(file.write(tBuf, av)!=av) f_werror=true; // write error?
+ if(len == 0) break;
+ }
+ cmdclient.readStringUntil('\n'); // read the remains, first \n
+ cmdclient.readStringUntil('\n'); // read the remains webkit\n
+ file.close();
+ if(f_werror) {
+ sprintf(buff, "File: %s write error", path);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ return false;
+ }
+ sprintf(buff, "File: %s written, FileSize %d: ", path, contentLength);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ return true;
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::begin(uint16_t http_port, uint16_t websocket_port) {
+ cmdserver.begin(http_port);
+ webSocketServer.begin(websocket_port);
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::stop() {
+ cmdclient.stop();
+ webSocketClient.stop();
+}
+//--------------------------------------------------------------------------------------------------------------
+String WebSrv::getContentType(String filename){
+ if (filename.endsWith(".html")) return "text/html" ;
+ else if (filename.endsWith(".htm" )) return "text/html";
+ else if (filename.endsWith(".css" )) return "text/css";
+ else if (filename.endsWith(".txt" )) return "text/plain";
+ else if (filename.endsWith(".js" )) return "application/javascript";
+ else if (filename.endsWith(".json")) return "application/json";
+ else if (filename.endsWith(".svg" )) return "image/svg+xml";
+ else if (filename.endsWith(".ttf" )) return "application/x-font-ttf";
+ else if (filename.endsWith(".otf" )) return "application/x-font-opentype";
+ else if (filename.endsWith(".xml" )) return "text/xml";
+ else if (filename.endsWith(".pdf" )) return "application/pdf";
+ else if (filename.endsWith(".png" )) return "image/png" ;
+ else if (filename.endsWith(".bmp" )) return "image/bmp" ;
+ else if (filename.endsWith(".gif" )) return "image/gif" ;
+ else if (filename.endsWith(".jpg" )) return "image/jpeg" ;
+ else if (filename.endsWith(".ico" )) return "image/x-icon" ;
+ else if (filename.endsWith(".css" )) return "text/css" ;
+ else if (filename.endsWith(".zip" )) return "application/x-zip" ;
+ else if (filename.endsWith(".gz" )) return "application/x-gzip" ;
+ else if (filename.endsWith(".xls" )) return "application/msexcel" ;
+ else if (filename.endsWith(".mp3" )) return "audio/mpeg" ;
+ return "text/plain" ;
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::handlehttp() { // HTTPserver, message received
+ bool wswitch=true;
+ int16_t inx0, inx1, inx2, inx3; // Pos. of search string in currenLine
+ String currentLine = ""; // Build up to complete line
+ String ct; // contentType
+ uint32_t contentLength = 0; // contentLength
+ uint8_t count = 0;
+
+ if (!cmdclient.connected()){
+ log_e("cmdclient schould be connected but is not!");
+ return false;
+ }
+ while (wswitch==true){ // first while
+ if(!cmdclient.available()){
+ log_e("Command client schould be available but is not!");
+ return false;
+ }
+ currentLine = cmdclient.readStringUntil('\n');
+// log_i("currLine %s", currentLine.c_str());
+ // If the current line is blank, you got two newline characters in a row.
+ // that's the end of the client HTTP request, so send a response:
+ if (currentLine.length() == 1) { // contains '\n' only
+ wswitch=false; // use second while
+ if (http_cmd.length()) {
+ if(WEBSRV_onInfo) WEBSRV_onInfo(URLdecode(http_cmd).c_str());
+ if(WEBSRV_onCommand) WEBSRV_onCommand(URLdecode(http_cmd), URLdecode(http_param), URLdecode(http_arg));
+ }
+ else if(http_rqfile.length()){
+ if(WEBSRV_onInfo) WEBSRV_onInfo(URLdecode(http_rqfile).c_str());
+ if(WEBSRV_onCommand) WEBSRV_onCommand(URLdecode(http_rqfile), URLdecode(http_param), URLdecode(http_arg));
+ }
+ else { // An empty "GET"?
+ if(WEBSRV_onInfo) WEBSRV_onInfo("Filename is: index.html");
+ if(WEBSRV_onCommand) WEBSRV_onCommand("index.html", URLdecode(http_param), URLdecode(http_arg));
+ }
+ currentLine = "";
+ http_cmd = "";
+ http_param = "";
+ http_arg = "";
+ http_rqfile = "";
+ method = HTTP_NONE;
+ break;
+ } else {
+ // Newline seen
+ inx0 = 0;
+
+ if (currentLine.startsWith("Content-Length:")) contentLength = currentLine.substring(15).toInt();
+
+ if (currentLine.startsWith("GET /")) {method = HTTP_GET; inx0 = 5;} // GET request?
+ if (currentLine.startsWith("POST /")){method = HTTP_PUT; inx0 = 6;} // POST request?
+ if (inx0 == 0) method = HTTP_NONE;
+
+ if(inx0>0){
+ inx1 = currentLine.indexOf("?"); // Search for 1st parameter
+ inx2 = currentLine.lastIndexOf("&"); // Search for 2nd parameter
+ inx3 = currentLine.indexOf(" HTTP");// Search for 3th parameter
+
+ if(inx1 > inx0){ // it is a command
+ http_cmd = currentLine.substring(inx0, inx1);//isolate the command
+ http_rqfile = ""; // No file
+ }
+ if((inx1>0) && (inx1+1 < inx3)){ // it is a parameter
+ http_param = currentLine.substring(inx1+1, inx3);//isolate the parameter
+
+ if(inx2>0){
+ http_arg = currentLine.substring(inx2+1, inx3);//isolate the arguments
+ http_param = currentLine.substring(inx1+1, inx2);//cut the parameter
+ }
+ http_rqfile = ""; // No file
+ }
+ if(inx1 < 0 && inx2 < 0){ // it is a filename
+ http_rqfile = currentLine.substring(inx0, inx3);
+ http_cmd = "";
+ http_param = "";
+ http_arg = "";
+ }
+ }
+ currentLine = "";
+ }
+ } //end first while
+ while(wswitch==false){ // second while
+ if(cmdclient.available()) {
+ //log_i("%i", cmdclient.available());
+ currentLine = cmdclient.readStringUntil('\n');
+ //log_i("currLine %s", currentLine.c_str());
+ contentLength -= currentLine.length();
+ }
+ else{
+ currentLine = "";
+ }
+ if(!currentLine.length()){
+ return true;
+ }
+ if((currentLine.length() == 1 && count == 0) || count >= 2){
+ wswitch=true; // use first while
+ currentLine = "";
+ count = 0;
+ break;
+ }
+ else{ // its the requestbody
+ if(currentLine.length() > 1){
+ if(WEBSRV_onRequest) WEBSRV_onRequest(currentLine, 0);
+ if(WEBSRV_onInfo) WEBSRV_onInfo(currentLine.c_str());
+ }
+
+ if(currentLine.startsWith("------")) {
+ count++; // WebKitFormBoundary header
+ contentLength -= (currentLine.length() + 2); // WebKitFormBoundary footer ist 2 chars longer
+ }
+ if(currentLine.length() == 1 && count == 1){
+ contentLength -= 6; // "\r\n\r\n..."
+ if(WEBSRV_onRequest) WEBSRV_onRequest("fileUpload", contentLength);
+ count++;
+ }
+ }
+
+ } // end second while
+ cmdclient.stop();
+ return true;
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::handleWS() { // Websocketserver, receive messages
+ String currentLine = ""; // Build up to complete line
+
+ if (!webSocketClient.connected()){
+ log_e("webSocketClient schould be connected but is not!");
+ hasclient_WS = false;
+ return false;
+ }
+
+ if(!hasclient_WS){
+ while(true){
+ currentLine = webSocketClient.readStringUntil('\n');
+
+ if (currentLine.length() == 1) { // contains '\n' only
+ if(ws_conn_request_flag){
+ ws_conn_request_flag = false;
+ printWebSocketHeader(WS_resp_Key);
+ hasclient_WS = true;
+ }
+ break;
+ }
+
+ if (currentLine.startsWith("Sec-WebSocket-Key:")) { // Websocket connection request
+ WS_sec_Key = currentLine.substring(18);
+ WS_sec_Key.trim();
+ WS_resp_Key = calculateWebSocketResponseKey(WS_sec_Key);
+ ws_conn_request_flag = true;
+ }
+ }
+ }
+ int av = webSocketClient.available();
+
+ if(av){
+ parseWsMessage(av);
+ }
+ return true;
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::parseWsMessage(uint32_t len){
+ uint8_t headerLen = 2;
+ uint16_t paylodLen;
+ uint8_t maskingKey[4];
+
+ if(len > UINT16_MAX){
+ log_e("Websocketmessage too long");
+ return;
+ }
+
+ webSocketClient.readBytes(buff, 1);
+ uint8_t fin = ((buff[0] >> 7) & 0x01); (void)fin;
+ uint8_t rsv1 = ((buff[0] >> 6) & 0x01); (void)rsv1;
+ uint8_t rsv2 = ((buff[0] >> 5) & 0x01); (void)rsv2;
+ uint8_t rsv3 = ((buff[0] >> 4) & 0x01); (void)rsv3;
+ uint8_t opcode = (buff[0] & 0x0F);
+
+ webSocketClient.readBytes(buff, 1);
+ uint8_t mask = ((buff[0]>>7) & 0x01);
+ paylodLen = (buff[0] & 0x7F);
+
+ if(paylodLen == 126){
+ headerLen = 4;
+ webSocketClient.readBytes(buff, 2);
+ paylodLen = buff[0] << 8;
+ paylodLen += buff[1];
+
+ }
+
+ (void)headerLen;
+
+ if(mask){
+ maskingKey[0] = webSocketClient.read();
+ maskingKey[1] = webSocketClient.read();
+ maskingKey[2] = webSocketClient.read();
+ maskingKey[3] = webSocketClient.read();
+ }
+
+ if(opcode == 0x08) { // denotes a connection close
+ hasclient_WS = false;
+ webSocketClient.stop();
+ return;
+ }
+
+ if(opcode == 0x09) { // denotes a ping
+ if(WEBSRV_onCommand) WEBSRV_onCommand("ping received, send pong", "", "");
+ if(WEBSRV_onInfo) WEBSRV_onInfo("pong received, send pong");
+ sendPong();
+ }
+
+ if(opcode == 0x0A) { // denotes a pong
+ if(WEBSRV_onCommand) WEBSRV_onCommand("pong received", "", "");
+ if(WEBSRV_onInfo) WEBSRV_onInfo("pong received");
+ return;
+ }
+
+ if(opcode == 0x01) { // denotes a text frame
+ int plen;
+ while(paylodLen){
+ if(paylodLen > 255){
+ plen = 255;
+ paylodLen -= webSocketClient.readBytes(buff, plen);
+ }
+ else{
+ plen = paylodLen;
+ paylodLen = 0;
+ webSocketClient.readBytes(buff, plen);
+ }
+ if(mask){
+ for(int i = 0; i < plen; i++){
+ buff[i] = (buff[i] ^ maskingKey[i % 4]);
+ }
+ }
+ buff[plen] = 0;
+ if(WEBSRV_onInfo) WEBSRV_onInfo(buff);
+ if(len < 256){ // can be a command like "mute=1"
+ char *ret;
+ ret = strchr((const char*)buff, '=');
+ if(ret){
+ *ret = 0;
+ // log_i("cmd=%s, para=%s", buff, ret);
+ if(WEBSRV_onCommand) WEBSRV_onCommand((const char*) buff, ret + 1, "");
+ buff[0] = 0;
+ return;
+ }
+ }
+ if(WEBSRV_onCommand) WEBSRV_onCommand((const char*) buff, "", "");
+ }
+ buff[0] = 0;
+ }
+}
+//--------------------------------------------------------------------------------------------------------------
+boolean WebSrv::loop() {
+
+ cmdclient = cmdserver.available();
+ if (cmdclient.available()){ // Check Input from client?
+ if(WEBSRV_onInfo) WEBSRV_onInfo("Command client available");
+ return handlehttp();
+ }
+
+ if(!webSocketClient.connected()){
+ hasclient_WS = false;
+ }
+ if(!hasclient_WS) webSocketClient = webSocketServer.available();
+ if (webSocketClient.available()){
+ if(WEBSRV_onInfo) WEBSRV_onInfo("WebSocket client available");
+ return handleWS();
+ }
+
+ return false;
+}
+//--------------------------------------------------------------------------------------------------------------
+void WebSrv::reply(const String &response, bool header){
+ if(header==true) {
+ int l= response.length();
+ // HTTP header
+ String httpheader="";
+ httpheader += "HTTP/1.1 200 OK\r\n";
+ httpheader += "Connection: close\r\n";
+ httpheader += "Content-type: text/html\r\n";
+ httpheader += "Content-Length: " + String(l, 10) + "\r\n";
+ httpheader += "Server: " + _Name+ "\r\n";
+ httpheader += "Cache-Control: max-age=3600\r\n";
+ httpheader += "Last-Modified: " + _Version + "\r\n\r\n";
+
+ cmdclient.print(httpheader) ; // header sent
+ }
+ cmdclient.print(response);
+}
+//--------------------------------------------------------------------------------------------------------------
+String WebSrv::UTF8toASCII(String str){
+ uint16_t i=0;
+ String res="";
+ char tab[96]={
+ 96,173,155,156, 32,157, 32, 32, 32, 32,166,174,170, 32, 32, 32,248,241,253, 32,
+ 32,230, 32,250, 32, 32,167,175,172,171, 32,168, 32, 32, 32, 32,142,143,146,128,
+ 32,144, 32, 32, 32, 32, 32, 32, 32,165, 32, 32, 32, 32,153, 32, 32, 32, 32, 32,
+ 154, 32, 32,225,133,160,131, 32,132,134,145,135,138,130,136,137,141,161,140,139,
+ 32,164,149,162,147, 32,148,246, 32,151,163,150,129, 32, 32,152
+ };
+ while(str[i]!=0){
+ if(str[i]==0xC2){ // compute unicode from utf8
+ i++;
+ if((str[i]>159)&&(str[i]<192)) res+=char(tab[str[i]-160]);
+ else res+=char(32);
+ }
+ else if(str[i]==0xC3){
+ i++;
+ if((str[i]>127)&&(str[i]<192)) res+=char(tab[str[i]-96]);
+ else res+=char(32);
+ }
+ else res+=str[i];
+ i++;
+ }
+ return res;
+}
+//--------------------------------------------------------------------------------------------------------------
+String WebSrv::URLdecode(String str){
+ String hex="0123456789ABCDEF";
+ String res="";
+ uint16_t i=0;
+ while(str[i]!=0){
+ if((str[i]=='%') && isHexadecimalDigit(str[i+1]) && isHexadecimalDigit(str[i+2])){
+ res+=char((hex.indexOf(str[i+1])<<4) + hex.indexOf(str[i+2])); i+=3;}
+ else{res+=str[i]; i++;}
+ }
+ return res;
+}
+//--------------------------------------------------------------------------------------------------------------
+String WebSrv::responseCodeToString(int code) {
+ switch (code) {
+ case 100: return F("Continue");
+ case 101: return F("Switching Protocols");
+ case 200: return F("OK");
+ case 201: return F("Created");
+ case 202: return F("Accepted");
+ case 203: return F("Non-Authoritative Information");
+ case 204: return F("No Content");
+ case 205: return F("Reset Content");
+ case 206: return F("Partial Content");
+ case 300: return F("Multiple Choices");
+ case 301: return F("Moved Permanently");
+ case 302: return F("Found");
+ case 303: return F("See Other");
+ case 304: return F("Not Modified");
+ case 305: return F("Use Proxy");
+ case 307: return F("Temporary Redirect");
+ case 400: return F("Bad Request");
+ case 401: return F("Unauthorized");
+ case 402: return F("Payment Required");
+ case 403: return F("Forbidden");
+ case 404: return F("Not Found");
+ case 405: return F("Method Not Allowed");
+ case 406: return F("Not Acceptable");
+ case 407: return F("Proxy Authentication Required");
+ case 408: return F("Request Time-out");
+ case 409: return F("Conflict");
+ case 410: return F("Gone");
+ case 411: return F("Length Required");
+ case 412: return F("Precondition Failed");
+ case 413: return F("Request Entity Too Large");
+ case 414: return F("Request-URI Too Large");
+ case 415: return F("Unsupported Media Type");
+ case 416: return F("Requested range not satisfiable");
+ case 417: return F("Expectation Failed");
+ case 500: return F("Internal Server Error");
+ case 501: return F("Not Implemented");
+ case 502: return F("Bad Gateway");
+ case 503: return F("Service Unavailable");
+ case 504: return F("Gateway Time-out");
+ case 505: return F("HTTP Version not supported");
+ default: return "";
+ }
+}
+//--------------------------------------------------------------------------------------------------------------
diff --git a/lib/ESP32-audioI2S/examples/DLNA/lib/websrv/websrv.h b/lib/ESP32-audioI2S/examples/DLNA/lib/websrv/websrv.h
new file mode 100644
index 0000000..537024e
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/lib/websrv/websrv.h
@@ -0,0 +1,96 @@
+/*
+ * websrv.h
+ *
+ * Created on: 09.07.2017
+ * updated on: 11.04.2022
+ * Author: Wolle
+ */
+
+#ifndef WEBSRV_H_
+#define WEBSRV_H_
+#include "Arduino.h"
+#include "WiFi.h"
+#include "SD.h"
+#include "FS.h"
+#include "mbedtls/sha1.h"
+#include "base64.h"
+
+extern __attribute__((weak)) void WEBSRV_onInfo(const char*);
+extern __attribute__((weak)) void WEBSRV_onCommand(const String cmd, const String param, const String arg);
+extern __attribute__((weak)) void WEBSRV_onRequest(const String, uint32_t contentLength);
+
+
+
+class WebSrv
+{
+protected:
+ WiFiClient cmdclient; // An instance of the client for commands
+ WiFiClient webSocketClient ;
+ WiFiServer cmdserver;
+ WiFiServer webSocketServer;
+
+private:
+ bool http_reponse_flag = false ; // Response required
+ bool ws_conn_request_flag = false; // websocket connection attempt
+ bool hasclient_WS = false;
+ String http_rqfile ; // Requested file
+ String http_cmd ; // Content of command
+ String http_param; // Content of parameter
+ String http_arg; // Content of argument
+ String _Name;
+ String _Version;
+ String contenttype;
+ char buff[256];
+ uint8_t method;
+ String WS_sec_Key;
+ String WS_resp_Key;
+ String WS_sec_conKey = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
+
+protected:
+ String calculateWebSocketResponseKey(String sec_WS_key);
+ void printWebSocketHeader(String wsRespKey);
+ String getContentType(String filename);
+ boolean handlehttp();
+ boolean handleWS();
+ void parseWsMessage(uint32_t len);
+ uint8_t inbyte();
+ String URLdecode(String str);
+ String UTF8toASCII(String str);
+ String responseCodeToString(int code);
+
+
+public:
+ enum { HTTP_NONE = 0, HTTP_GET = 1, HTTP_PUT = 2 };
+ enum { Continuation_Frame = 0x00, Text_Frame = 0x01, Binary_Frame = 0x02, Connection_Close_Frame = 0x08,
+ Ping_Frame = 0x09, Pong_Frame = 0x0A };
+ WebSrv(String Name="WebSrv library", String Version="1.0");
+ void begin(uint16_t http_port = 80, uint16_t websocket_port = 81);
+ void stop();
+ boolean loop();
+ void show(const char* pagename, int16_t len=-1);
+ void show_not_found();
+ boolean streamfile(fs::FS &fs,const char* path);
+ boolean send(String msg, uint8_t opcode = Text_Frame);
+ boolean send(const char* msg, uint8_t opcode = Text_Frame);
+ void sendPing();
+ void sendPong();
+ boolean uploadfile(fs::FS &fs,const char* path, uint32_t contentLength);
+ boolean uploadB64image(fs::FS &fs,const char* path, uint32_t contentLength);
+ void reply(const String &response, boolean header=true);
+ const char* ASCIItoUTF8(const char* str);
+
+private:
+ const int B64index[123] ={
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 63, 62, 62, 63,
+ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, 0, 0, 0, 0, 0,
+ 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 63,
+ 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51
+ };
+};
+
+
+#endif /* WEBSRV_H_ */
diff --git a/lib/ESP32-audioI2S/examples/DLNA/partitions.csv b/lib/ESP32-audioI2S/examples/DLNA/partitions.csv
new file mode 100644
index 0000000..e43e81a
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/partitions.csv
@@ -0,0 +1,4 @@
+# Name, Type, SubType, Offset, Size
+nvs, data, nvs, 0x9000, 0x4000
+phy_init, data, phy, 0xd000, 0x1000
+factory, app, factory, 0x10000, 3M,
diff --git a/lib/ESP32-audioI2S/examples/DLNA/platformio.ini b/lib/ESP32-audioI2S/examples/DLNA/platformio.ini
new file mode 100644
index 0000000..3fb9fb7
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/platformio.ini
@@ -0,0 +1,61 @@
+; PlatformIO Project Configuration File
+;
+; Build options: build flags, source filter
+; Upload options: custom upload port, speed and extra flags
+; Library options: dependencies, extra library storages
+; Advanced options: extra scripting
+;
+; Please visit documentation for the other options and examples
+; https://docs.platformio.org/en/latest/platforms/espressif32.html
+
+[env:esp32dev]
+platform = https://github.com/platformio/platform-espressif32.git#v6.5.0
+
+board = esp32dev ;chipmodel ESP32, 4M FLASH, USBtoTTL
+
+board_build.f_cpu = 240000000L
+board_build.flash_size=4MB
+board_build.flash_freq=80M
+board_build.spiram_mode=2
+framework = arduino
+monitor_speed = 115200
+monitor_filters = esp32_exception_decoder
+board_build.partitions = default.csv
+upload_speed = 460800 ; 921600, 512000, 460800, 256000, 115200
+
+lib_deps =
+ https://github.com/schreibfaul1/ESP32-audioI2S.git#3.0.8
+ https://github.com/yellobyte/SoapESP32.git#1.1.4
+ https://github.com/arduino-libraries/Arduino_JSON.git
+
+platform_packages =
+
+ framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
+
+board_upload.maximum_size = 3145728
+board_upload.flash_size = 4MB
+board_build.flash_mode = qio
+board_build.bootloader = dio
+
+;build_flags = -DCORE_DEBUG_LEVEL=0 ; None
+;build_flags = -DCORE_DEBUG_LEVEL=1 ; Error
+;build_flags = -DCORE_DEBUG_LEVEL=2 ; Warn
+;build_flags = -DCORE_DEBUG_LEVEL=3 ; Info
+;build_flags = -DCORE_DEBUG_LEVEL=4 ; Debug
+;build_flags = -DCORE_DEBUG_LEVEL=5 ; Verbose
+
+build_flags =
+; -Wall
+; -Wextra
+ -Wdouble-promotion ; double to float warnings
+ -Wimplicit-fallthrough ; switch case without break
+ -DCORE_DEBUG_LEVEL=3
+ -DCONFIG_ARDUHAL_LOG_COLORS
+ -DBOARD_HAS_PSRAM
+ -DARDUINO_RUNNING_CORE=3 ; Arduino Runs On Core (setup, loop)
+ -DARDUINO_EVENT_RUNNING_CORE=1 ; Events Run On Core
+; -DAUDIO_LOG
+
+build_unflags =
+; -DARDUINO_USB_CDC_ON_BOOT=0 ; traditional log
+; -DBOARD_HAS_PSRAM
diff --git a/lib/ESP32-audioI2S/examples/DLNA/readme.md b/lib/ESP32-audioI2S/examples/DLNA/readme.md
new file mode 100644
index 0000000..2c5ca39
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/readme.md
@@ -0,0 +1,5 @@
+# DLNA
+ DLNA servers are available in many home networks. Many Internet routers (e.g. Fritzbox) have an integrated DLNA service. It is also easy to set up a own DLNA server (e.g. miniDLNA on a Raspberry Pi). The SoapESP32 library https://github.com/yellobyte/SoapESP32 used here automatically recognizes the DLNA servers available in the home network. Thanks to yellobyte for this library. Since the SW is too extensive for a sketch, I have published a complete project here. Simply download the repository and unzip the DLNA folder. You can open the project with PlatformIO. Change the access data and, if necessary, the GPIOs in main.cpp. If a DLNA server was detected, its content will be displayed in the browser. If an audio file is selected, the playback process begins using the audioI2S library.
+
+ Webpage
+
diff --git a/lib/ESP32-audioI2S/examples/DLNA/src/index.h b/lib/ESP32-audioI2S/examples/DLNA/src/index.h
new file mode 100644
index 0000000..48493d2
--- /dev/null
+++ b/lib/ESP32-audioI2S/examples/DLNA/src/index.h
@@ -0,0 +1,287 @@
+/*
+ * index.h
+ *
+ * Created on: 13.12.2022
+ * Updated on: 20.12.2022
+ * Author: Wolle
+ *
+ * ESP32 - DLNA
+ *
+ */
+
+#ifndef INDEX_H_
+#define INDEX_H_
+
+#include "Arduino.h"
+
+// file in raw data format for PROGMEM
+
+const char index_html[] PROGMEM = R"=====(
+
+
+
+ ESP32 - DLNA
+
+
+
+
+
+