Welcome in the forum, George!
I (personally) would never trust a code snippet or project in a .pdf.
The best source for getting started I could recommend is on Creator's "Start" page. Under "Kits" you will find all the kits you have installed with code examples that run.
Thanks Bob. I agree, but then why have a 154 page document that steps through every aspect and getting set up and then differs from the updated code?
The PDF even goes so far as to have the following statement:
After including the above code snippets in the correct order, go to Build > Clean and Build your project to compile the firmware. Appendix E details the complete main.c firmware
Hopefully Cypress is reading this and will make corrections where needed. The project code does compile but I'll have to hook up hardware and verify that it works properly.
This is a developer forum. The chance that Cypress reads this is there, but acting on it is not a "must". When you want to have Cypress to correct some flaws in documentation go to top of this page "Design Support -> Create a support case" and describe the bug you've found so far. Cypress is always thankful improving the documentation.