Programming The ESP32 In C
Using The Arduino Library
We have decided not to make the programs available as a download because this is not the point of the book - the programs are not finished production code but something you should type in and study.
The best solution is to provide the source code of the programs in a form that can be copied and pasted into a VS Code project.
The only downside is that you have to create a project to paste the code into.
To do this follow the instruction in the book.
All of the programs below were copy and pasted from working programs in the IDE. They have been formatted using the built in formatter and hence are not identical in layout to the programs in the book. This is to make copy and pasting them easier. The programs in the book are formatted to be easy to read on the page. Some of the programs are presented complete even though they were presented in the book as fragments.
Important Note For NANO ESP32 users:
All of the programs make use of GPIO numbering not Arduino numbering.
To change the way that the IDE interprets GPIO numbers use the menu command
Tools,Pin Numbering and select By GPIO number (legacy)
After this all of the programs will work on the NANO ESP32 with minor modification to the GPIO lines used.
Notice that the NANO ESP32 currently doesn't implment some ESP32 features.
These ommissions and changes are noted along with the code.
If anything you consider important is missing or if you have any requests or comments contact:
This email address is being protected from spambots. You need JavaScript enabled to view it.
- Prev
- Next >>