SOLVED - Bad Example

This weekend I created my first library and posted it here: Yet another button library

A couple of eagle eyed experts found some problems in it. ( Greatly appreciated )
So I corrected it and removed the original and installed the corrected version.

But now when I open the example.ino the original uncorrected example is opened instead of the corrected version. The .cpp an .h files are correct and if I manually correct the example.ino it compiles and works properly but does not save.(read only)

I deleted the original and if I go to the libraries folder and open the example.ino from there the corrected version opens. but if I open it from within the IDE I get the old bad version.

Any Ideas on how to fix this?

Try this:

  • File > Examples > SimpleButton > SimpleButton_Example
  • Sketch > Show Sketch Folder - this will open the folder containing the example sketch that the Arduino IDE opened.
  • Verify that the file at that location is the same corrected one you were opening manually.

Thanks again pert.