Main.Libraries History

Show minor edits - Show changes to markup

October 28, 2007, at 02:51 PM by David A. Mellis -
Changed lines 7-8 from:

To install your own library, create a folder inside ARDUINO/lib/targets/libraries with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE.

to:

To install your own library, create a folder inside ARDUINO/hardware/libraries with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE.

August 28, 2006, at 09:00 AM by David A. Mellis - adding comment about needing to delete .o file.
Changed line 11 from:

To get started writing libraries, download this test library. It should provide a basic template for creating a new library.

to:

To get started writing libraries, download this test library. It should provide a basic template for creating a new library. After you've made changes to your library, in order to get it to recompile, you will have to delete the .o file generated in the library's directory.

July 27, 2006, at 05:46 PM by Heather Dewey-Hagborg -
Changed lines 9-10 from:

Because libraries are uploaded to the board with your sketch, they increase the amount of space used on the ATmega8 on the board. See the FAQ for an explanation of various memory limitations and tips on reducing program size. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

to:

Because libraries are uploaded to the board with your sketch, they increase the amount of space used by the ATmega8 on the board. See the FAQ for an explanation of various memory limitations and tips on reducing program size. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

July 27, 2006, at 05:45 PM by Heather Dewey-Hagborg -
Changed lines 3-6 from:

Libraries are files written in C or C++ which provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, etc.). They were introduced in Arduino 0004.

To install a library, create a folder inside ARDUINO/lib/targets/libraries with the name of your library. The folder should contain a .c or .cpp file with your code and a .h (header) file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE. To use a library in a sketch, select it from that menu while editing the sketch. This will insert an #include statement at the top of the sketch for each header file in the library's folder. These statements make available to your sketch the public functions and constants defined by the library. They also signal the Arduino environment to link that library's code with your sketch when it is compiled or uploaded.

to:

Libraries are files written in C or C++ (.c, .cpp) which provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, etc.). They were introduced in Arduino 0004.

To use an existing library in a sketch simply go to the Sketch menu, choose "Import Library", and pick from the libraries available. This will insert an #include statement at the top of the sketch for each header (.h) file in the library's folder. These statements make the public functions and constants defined by the library available to your sketch. They also signal the Arduino environment to link that library's code with your sketch when it is compiled or uploaded.

To install your own library, create a folder inside ARDUINO/lib/targets/libraries with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE.

July 27, 2006, at 05:38 PM by Heather Dewey-Hagborg -
Changed line 9 from:

To get started writing libraries, download this test library. It should provide a basic guide for creating a new library.

to:

To get started writing libraries, download this test library. It should provide a basic template for creating a new library.

July 27, 2006, at 05:38 PM by Heather Dewey-Hagborg -
Changed lines 7-8 from:

Because libraries are uploaded to the board with your sketch, they increase the amount of space used on the ATmega8 on the board. See the FAQ for an explanation of various memory limitations and tips on reducing program size. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

to:

Because libraries are uploaded to the board with your sketch, they increase the amount of space used on the ATmega8 on the board. See the FAQ for an explanation of various memory limitations and tips on reducing program size. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

July 27, 2006, at 05:35 PM by Heather Dewey-Hagborg -
Changed lines 3-8 from:

Libraries provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, etc.). They were introduced in Arduino 0004.

To install a library, place it in its own folder inside ARDUINO/lib/targets/libraries. It will then appear in the Sketch | Import Library menu in the Arduino IDE. To use a library in a sketch, select it from that menu while editing the sketch. This will insert at the top of the sketch an #include statement for each header file (ending in .h) in the library's folder. These statements make available to your sketch the functions and constants defined by the library. They also signal the Arduino environment to link that library's code (contained in files ending with .c or .cpp) with your sketch it is compiled or uploaded.

Because libraries are uploaded to the board with your sketch, they increase the amount of space used on the ATmega8 on the board. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

to:

Libraries are files written in C or C++ which provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, etc.). They were introduced in Arduino 0004.

To install a library, create a folder inside ARDUINO/lib/targets/libraries with the name of your library. The folder should contain a .c or .cpp file with your code and a .h (header) file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE. To use a library in a sketch, select it from that menu while editing the sketch. This will insert an #include statement at the top of the sketch for each header file in the library's folder. These statements make available to your sketch the public functions and constants defined by the library. They also signal the Arduino environment to link that library's code with your sketch when it is compiled or uploaded.

Because libraries are uploaded to the board with your sketch, they increase the amount of space used on the ATmega8 on the board. See the FAQ for an explanation of various memory limitations and tips on reducing program size. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

May 12, 2006, at 11:16 AM by David A. Mellis - adding libraries page
Added lines 1-9:

Arduino Libraries

Libraries provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, etc.). They were introduced in Arduino 0004.

To install a library, place it in its own folder inside ARDUINO/lib/targets/libraries. It will then appear in the Sketch | Import Library menu in the Arduino IDE. To use a library in a sketch, select it from that menu while editing the sketch. This will insert at the top of the sketch an #include statement for each header file (ending in .h) in the library's folder. These statements make available to your sketch the functions and constants defined by the library. They also signal the Arduino environment to link that library's code (contained in files ending with .c or .cpp) with your sketch it is compiled or uploaded.

Because libraries are uploaded to the board with your sketch, they increase the amount of space used on the ATmega8 on the board. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.

To get started writing libraries, download this test library. It should provide a basic guide for creating a new library.

Share