I am new to Arduino and am attempting to use the TVout library. I attempted to load the example from the File menu and the example code doesn't seem to load a new IDE window with the example code. I have attempted to search for this issue and found no answers as to the cause of this issue. Has anyone seen a code library with example code not load? I did try some of the other built in examples and they seem to pope open a new with with example code.
Hi @thesavo. Some very old Arduino sketches use the .pde sketch file extension. This was the file extension of sketches before Arduino switched to using the current .ino sketch file extension. Arduino IDE is intended to support either extension, but unfortunately there is a bug in Arduino IDE 2.x that causes it to fail to open examples when they use the deprecated .pde extension:
This is the reason why the TVout library examples aren't opening. I'll provide instructions for how you can open the examples:
Select File > Open... from the Arduino IDE menus.
The "Open" dialog will now open with your sketchbook folder in the file navigator. There will be a subfolder named libraries. Open that subfolder.
Now continue navigating to the TVout/examples subfolder.
Open the folder of the example sketch you want to open.
Select the .pde file in the example sketch folder.
Click the "Open" button.
Fortunately Arduino IDE's "Open" feature works fine with .pde sketches, so the example should now open in the IDE.
Hi . Thank you for your kind and helpful reply. I was able to get the example to load with your help. I also renamed the PDE file to INO and now the example loads from the Examples submenu as expected.
We can close this with the solution of File > open or rename the PDE to INO.
You are welcome. I'm glad you were able to open the example. Great work on implementing the permanent solution of renaming the example with the modern file extension.