LED library error

Hi there
I was building a library called LED based on the arduino tutorial and I followed all the instructions but after I built it when I tried to test it it won’t recognize it. Here is the code:

#include <LED.h>
LED create(13);
void setup(){

}

void loop(){
    
  LED.on();
  delay(1000);
  LED.off();
  delay(1000);
}

But when I tried to compile it it gave me an error on the 2nd line( LED create(13); ) saying" no matching function for call to ‘LED::LED(int)’ "
The contents of the library are attached. ANd this is the link where I got the tutorial http://arduino.cc/en/Hacking/LibraryTutorial
All help is appreciated.

keywords.txt (42 Bytes)

LED.cpp (1.04 KB)

LED.h (1 KB)

In your library, change "create" to "LED".

So in the header file:

class LED
{
public:
      LED(int pin)

And the CPP file:

LED::LED(int pin)
...

Then use it like this:

LED myLED(5);
myLED.on();

Thanks