Reference.Include History

Hide minor edits - Show changes to markup

June 01, 2010, at 03:31 AM by Equipo Traduccion -
Changed lines 3-12 from:

#include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino.

The main reference page for AVR C libraries (AVR is a reference to the Atmel chips on which the Arduino is based) is here.

Note that #include, similar to #define, has no semicolon terminator, and the compiler will yield cryptic error messages if you add one.

Example

This example includes a library that is used to put data into the program space flash instead of ram. This saves the ram space for dynamic memory needs and makes large lookup tables more practical.

to:

#include es utilizado para incluír librerías externas en tu sketch. Esto otorga al programador acceso a una gran cantidad de librerías C estándar (grupos de funciones ya hechas), y también librerías escritas especialmente para Arduino.

La principal página de referencia para librerías AVR C (AVR hace referencia a los chips Atmel en los cuales se basa Arduino) se encuentra aquí (en inglés).

Nota que #include, similar a #define, no posee punto y coma de terminación, y el compilador producirá crípticos mensajes de error si se agrega.

Ejemplo

En este ejemplo, se incluye una librería que se utiliza para poner los datos en el espacio flash del programa en lugar de la RAM. Esto ahorra espacio de memoria RAM y hace más prácticas las grandes tablas de operaciones de búsqueda.

October 09, 2007, at 05:39 AM by Paul Badger -
Changed lines 7-8 from:

Note that #include, similar to #define, has no semicolon terminator, and the compiler will often yield cryptic error messages if you add one.

to:

Note that #include, similar to #define, has no semicolon terminator, and the compiler will yield cryptic error messages if you add one.

October 09, 2007, at 05:39 AM by Paul Badger -
Added lines 7-8:

Note that #include, similar to #define, has no semicolon terminator, and the compiler will often yield cryptic error messages if you add one.

Deleted lines 12-13:

Note that #include, similar to #define, has no semicolon terminator, and the compiler will often yield cryptic error messages if you add one.

August 06, 2007, at 03:59 AM by Paul Badger -
Changed lines 14-15 from:
  1. inlcude <avr/pgmspace.h>
to:
  1. include <avr/pgmspace.h>
May 27, 2007, at 03:37 AM by Paul Badger -
Changed lines 5-6 from:

The main reference page for AVR C libraries (AVR is a reference to the Atmel chips on which the Arduino is based) is here.

to:

The main reference page for AVR C libraries (AVR is a reference to the Atmel chips on which the Arduino is based) is here.

May 27, 2007, at 03:35 AM by Paul Badger -
Added lines 11-12:

Note that #include, similar to #define, has no semicolon terminator, and the compiler will often yield cryptic error messages if you add one.

May 27, 2007, at 03:32 AM by Paul Badger -
Changed lines 9-10 from:

This example includes a library that is used to put data into the program space flash instead of ram this saves the ram space for dynamic memory needs and makes large lookup tables more practical.

to:

This example includes a library that is used to put data into the program space flash instead of ram. This saves the ram space for dynamic memory needs and makes large lookup tables more practical.

May 27, 2007, at 03:31 AM by Paul Badger -
Changed lines 14-15 from:

prog_uint16_t myConstants[] PROGMEM = {0, 21140, 702 , 9128, 0, 25764, 8456,0,0,0,0,0,0,0,0,29810,8968,29762,29762,4500};

to:

prog_uint16_t myConstants[] PROGMEM = {0, 21140, 702 , 9128, 0, 25764, 8456, 0,0,0,0,0,0,0,0,29810,8968,29762,29762,4500};

May 27, 2007, at 03:31 AM by Paul Badger -
Changed lines 7-8 from:

Example

to:

Example

Changed lines 14-15 from:

prog_uint16_t MyConstants[] PROGMEM = { // ascii char set encoded beginning with 33 ( '!' )

  0, 21140, 702  , 9128,  0, 25764, 8456,0,0,0,0,0,0,0,0,29810,8968,29762,29762,4500};
to:

prog_uint16_t myConstants[] PROGMEM = {0, 21140, 702 , 9128, 0, 25764, 8456,0,0,0,0,0,0,0,0,29810,8968,29762,29762,4500};

May 27, 2007, at 03:29 AM by Paul Badger -
Changed lines 3-4 from:
  1. include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino.
to:

#include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino.

May 27, 2007, at 03:28 AM by Paul Badger -
Added lines 5-16:

The main reference page for AVR C libraries (AVR is a reference to the Atmel chips on which the Arduino is based) is here.

Example

This example includes a library that is used to put data into the program space flash instead of ram this saves the ram space for dynamic memory needs and makes large lookup tables more practical.

#inlcude <avr/pgmspace.h>

prog_uint16_t MyConstants[] PROGMEM = {       // ascii char set encoded beginning with 33  ( '!' )
  0, 21140, 702  , 9128,  0, 25764, 8456,0,0,0,0,0,0,0,0,29810,8968,29762,29762,4500};

May 27, 2007, at 03:18 AM by Paul Badger -
Added lines 1-4:

#include

  1. include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino.

Share