First I made a new file called "blinky.h" in the Arduino IDE with the "New Tab" option. You might have to save the project before doing this to make sure it gets saved in the right place.
When you save the project it should have this structure:
BlinkyClass/
- BlinkyClass.pde
- blinky.h
The .h
file had to use a different structure than the main file (see below). See the Arduino Library Tuturial for more info.