Reference.Extended History

Hide minor edits - Show changes to output

June 01, 2010, at 02:06 PM by Equipo Traduccion -
Changed line 63 from:
* [[BitwiseAnd | ^]] (''xor'' 'a' nivel de bits)
to:
* [[BitwiseAnd | ^]] (''xor'' a nivel de bits)
June 01, 2010, at 02:05 PM by Equipo Traduccion -
Changed lines 43-78 from:
!!!!Comparison Operators
* [[if|==]] (equal to)
* [[if|!=]] (not equal to)
* [[if|<]] (less than)
* [[if|>]] (greater than)
* [[if|<=]] (less than or equal to)
* [[if|>=]] (greater than or equal to)

!!!!Boolean Operators
* [[Boolean | &&]] (and)
* [[Boolean | ||]] (or)
* [[Boolean | !]] (not)

!!!!Pointer Access Operators
* [[pointer | * dereference operator]]
* [[pointer | & reference operator]]

!!!!Bitwise Operators
* [[BitwiseAnd | &]] (bitwise and)
* [[BitwiseAnd | |]] (bitwise or)
* [[BitwiseAnd | ^]] (bitwise xor)
* [[BitwiseXorNot | ~]] (bitwise not)
* [[Bitshift | <<]] (bitshift left)
* [[Bitshift | >>]] (bitshift right)

!!!!Compound Operators
* [[increment | ++]] (increment)
* [[increment | --]] (decrement)
* [[incrementCompound | += ]] (compound addition)
* [[incrementCompound | -= ]] (compound subtraction)
* [[incrementCompound | *= ]] (compound multiplication)
* [[incrementCompound | /= ]] (compound division)

* [[bitwiseCompound | &= ]] (compound bitwise and)
* [[bitwiseCompound | |= ]] (compound bitwise or)
to:
!!!!Operadores de comparación
* [[if|==]] (igual a)
* [[if|!=]] (distinto de)
* [[if|<]] (menor que)
* [[if|>]] (mayor que)
* [[if|<=]] (menor o igual que)
* [[if|>=]] (mayor o igual que)

!!!!Operadores booleanos
* [[Boolean | &&]] (y)
* [[Boolean | ||]] (o)
* [[Boolean | !]] (no, negación)

!!!!Operadores de acceso a punteros
* [[pointer | * operador de indirección]]
* [[pointer | & operador de referencia]]

!!!!Operaciones a nivel de bits
* [[BitwiseAnd | &]] (''and'' - 'y' a nivel de bits)
* [[BitwiseAnd | |]] (''or'' - 'o' a nivel de bits)
* [[BitwiseAnd | ^]] (''xor'' 'a' nivel de bits)
* [[BitwiseXorNot | ~]] (''not'' a nivel de bits)
* [[Bitshift | <<]] (desplazamiento de bits a la izquierda)
* [[Bitshift | >>]] (desplazamiento de bits a la derecha)

!!!!Operadores compuestos
* [[increment | ++]] (incremento)
* [[increment | --]] (decremento)
* [[incrementCompound | += ]] (suma compuesta)
* [[incrementCompound | -= ]] (resta compuesta)
* [[incrementCompound | *= ]] (multiplicación compuesta)
* [[incrementCompound | /= ]] (división compuesta)

* [[bitwiseCompound | &= ]] (''and'' - 'y' a nivel de bits compuesto)
* [[bitwiseCompound | |= ]] (''or'' - 'o' a nivel de bits compuesto)
Changed lines 80-83 from:
!! Variables

!!!!Constants
to:
!!Variables

!!!!Constantes
Changed lines 87-109 from:
* [[integer constants]]
* [[fpconstants|floating point constants]]


!!!! Data Types

* [[void | void]]
* [[BooleanVariables|boolean]]
* [[char]]
* [[unsigned char]]
* [[byte]]
* [[int]]
* [[unsigned int]]
* [[word]]
* [[long]]
* [[unsigned long]]
* [[float]]
* [[double]]
* [[string]]
* [[array]]

!!!!Conversion
to:
* [[integer constants|constantes enteros]]
* [[fpconstants|constantes coma flotante]]


!!!!Tipos de datos

* [[void | void]] - vacío
* [[BooleanVariables|boolean]] - booleano
* [[char]] - carácter (8 bits)
* [[unsigned char]] - carácter sin signo
* [[byte]] - byte
* [[int]] - entero
* [[unsigned int]] - entero sin signo
* [[word]] - palabra
* [[long]] - entero grande
* [[unsigned long]] - entero grande sin signo
* [[float]] - coma flotante
* [[double]] - doble
* [[string]] - cadena de caracteres
* [[array]] - matriz

!!!!Conversión
Changed lines 117-128 from:
!!!!Variable Scope & Qualifiers

* [[Scope | variable scope]]
* [[static]]
* [[volatile]]
* [[const]]


!!!!Utilities

* [[sizeof]]() (sizeof operator)
to:
!!!!Ámbito de las variables y cualificadores

* [[Scope | Ámbito de las variables]]
* [[static]] - estático
* [[volatile]] - volátil
* [[const]] - constante


!!!!Utilidades

* [[sizeof]]() (operador sizeof, ''tamaño de'')
Changed lines 131-143 from:
!! Functions

'''Digital I/O'''
* [[pinMode]]()
* [[digitalWrite]]()
* [[digitalRead]]()

'''Analog I/O'''
* [[analogReference]]()
* [[analogRead]]()
* [[analogWrite]]() - ''PWM''

'''Advanced I/O'''
to:
!! Funciones

'''E/S Digital'''
* [[pinMode]]() - modo de pin (entrada o salida)
* [[digitalWrite]]() - escritura digital
* [[digitalRead]]() - lectura digital

'''E/S Analógica'''
* [[analogReference]]() - referencia analógica
* [[analogRead]]() - lectura analógica
* [[analogWrite]]() - escritura analógica, ''PWM''

'''E/S Avanzada'''
Changed line 146 from:
* [[shiftOut]]()
to:
* [[shiftOut]]()
Changed line 149 from:
'''Time'''
to:
'''Tiempo'''
Changed lines 155-180 from:
'''Math'''
* [[min]]()
* [[max]]()
* [[abs]]()
* [[constrain]]()
* [[map]]()
* [[pow]]()
* [[sqrt]]()

'''Trigonometry'''
* [[sin]]()
* [[cos]]()
* [[tan]]()

'''Random Numbers'''

* [[randomSeed]]()
* [[random]]()

'''Bits and Bytes'''
* [[lowByte]]()
* [[highByte]]()
* [[bitRead]]()
* [[bitWrite]]()
* [[bitSet]]()
* [[bitClear]]()
to:
'''Cálculo'''
* [[min]]() - mínimo
* [[max]]() - máximo
* [[abs]]() - valor absoluto
* [[constrain]]() - limitación
* [[map]]() - ''mapeo''
* [[pow]]() - potencia
* [[sqrt]]() - raíz cuadrada

'''Trigonometría'''
* [[sin]]() - seno
* [[cos]]() - coseno
* [[tan]]() - tangente

'''Números aleatorios'''

* [[randomSeed]]() - semilla aleatoria
* [[random]]() - aleatorio

'''Bits y Bytes'''
* [[lowByte]]() - Byte de abajo
* [[highByte]]() - Byte de arriba
* [[bitRead]]() - lectura de Bit
* [[bitWrite]]() - escritura de Bit
* [[bitSet]]() - escritura de un Bit 1
* [[bitClear]]() - escritura de un Bit 0
Changed lines 183-194 from:
'''External Interrupts'''

* [[attachInterrupt]]()
* [[detachInterrupt]]()

'''Interrupts'''

* [[interrupts]]()
* [[noInterrupts]]()

'''Communication'''
to:
'''Interrupciones externas'''

* [[attachInterrupt]]() - programar interrupción
* [[detachInterrupt]]() - desactivar interrupción

'''Interrupciones'''

* [[interrupts]]() - habilita las interrupciones
* [[noInterrupts]]() - desactiva las interrupciones

'''Comunicación'''
Changed lines 197-198 from:
'''Looking for something else?''' Try the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]].
to:
'''¿Buscas alguna otra cosa?''' Inténtalo en [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | el código de contribuciones.]].
June 01, 2010, at 12:20 PM by Equipo Traduccion -
Changed lines 2-7 from:
!Language Reference (extended)

''See the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. ''

The Arduino language is based on C/C++ and supports all standard C constructs and some C++ features. It links against [[http://www.nongnu.org/avr-libc/user-manual/modules.html | AVR Libc]] and allows the use of any of its functions; see its [[http://www.nongnu.org/avr-libc/user-manual/index.html | user manual]] for details.
to:
!Referencia de lenguaje (extensión)

''Ver la '''[[Libraries | página de librerías]]''' para interactuar con tipos concretos de hardware.''

El lenguaje Arduino está basado en C/C++ y soporta todas las construcciones de C estándar y algunas funcionalidades de C++. Vincula la librería [[http://www.nongnu.org/avr-libc/user-manual/modules.html | AVR Libc]] y permite el uso de todas sus funciones. Ver su [[http://www.nongnu.org/avr-libc/user-manual/index.html | manual de usuario]] para más detalles.
Changed lines 10-11 from:
!! Structure
to:
!!Estructura
Changed line 15 from:
!!!!Control Structures
to:
!!!!Estructuras de control
Changed lines 27-42 from:
!!!!Further Syntax
* [[SemiColon|;]] (semicolon)
* [[Braces|{}]] (curly braces)
* [[Comments|//]] (single line comment)
* [[Comments|/* */]] (multi-line comment)
* [[Define | #define]]
* [[Include | #include]]

!!!!Arithmetic Operators
*[[Assignment | = ]] (assignment operator)
* [[Arithmetic | +&nbsp; ]] (addition)
* [[Arithmetic | - ]] (subtraction)
* [[Arithmetic | *]] (multiplication)
* [[Arithmetic | /]] (division)
* [[modulo | %]] (modulo)
to:
!!!!Más sintaxis
* [[SemiColon|;]] (punto y coma)
* [[Braces|{}]] (llaves)
* [[Comments|//]] (comentario de una sola línea)
* [[Comments|/* */]] (comentario multilínea)
* [[Define | #define]] (definición de precompilador)
* [[Include | #include]] (inclusión de código externo)

!!!!Operaciones aritméticas
*[[Assignment | = ]] (operador de asignación)
* [[Arithmetic | +&nbsp; ]] (suma)
* [[Arithmetic | - ]] (resta)
* [[Arithmetic | *]] (multiplicación)
* [[Arithmetic | /]] (división)
* [[modulo | %]] (módulo)
April 02, 2010, at 05:14 AM by David A. Mellis - changing to three columns
Deleted line 5:
Changed line 9 from:
(:cell width=50%:)
to:
(:cell width=33%:)
Added line 79:
(:cell width=33%:)
Changed lines 129-133 from:
!!Reference

* [[ASCIIchart|ASCII chart]]
(:cell width=50%:)
to:
(:cell width=33%:)
April 01, 2010, at 10:36 PM by David A. Mellis -
Changed line 93 from:
* [[void | void keyword]]
to:
* [[void | void]]
April 01, 2010, at 10:33 PM by David A. Mellis -
Changed lines 139-140 from:
* int [[digitalRead]]()
to:
* [[digitalRead]]()
April 01, 2010, at 10:33 PM by David A. Mellis -
Changed lines 13-15 from:
* void [[setup]]()
* void [[loop]]()
to:
* [[setup]]()
* [[loop]]()
Changed lines 137-140 from:
* [[pinMode]](pin, mode)
* [[digitalWrite]](pin, value)
* int [[digitalRead]](pin)
to:
* [[pinMode]]()
* [[digitalWrite]]()
* int [[digitalRead]]()
Changed lines 142-145 from:
* [[analogReference]](type)
* int [[analogRead]](pin)
* [[analogWrite]](pin, value) - ''PWM''
to:
* [[analogReference]]()
* [[analogRead]]()
* [[analogWrite]]() - ''PWM''
Changed lines 149-151 from:
* [[shiftOut]](dataPin, clockPin, bitOrder, value)
* unsigned long [[pulseIn]](pin, value)
to:
* [[shiftOut]]()
* [[pulseIn]]()
Changed lines 153-157 from:
* unsigned long [[millis]]()
* unsigned long [[micros]]()
* [[delay]](ms)
* [[delayMicroseconds]](us)
to:
* [[millis]]()
* [[micros]]()
* [[delay]]()
* [[delayMicroseconds]]()
Changed lines 159-166 from:
* [[min]](x, y)
* [[max]](x, y)
* [[abs]](x)
* [[constrain]](x, a, b)
* [[map]](value, fromLow, fromHigh, toLow, toHigh)
* [[pow]](base, exponent)
* [[sqrt]](x)
to:
* [[min]]()
* [[max]]()
* [[abs]]()
* [[constrain]]()
* [[map]]()
* [[pow]]()
* [[sqrt]]()
Changed lines 168-171 from:
* [[sin]](rad)
* [[cos]](rad)
* [[tan]](rad)
to:
* [[sin]]()
* [[cos]]()
* [[tan]]()
Changed lines 174-177 from:
* [[randomSeed]](seed)
* long [[random]](max)
* long [[random]](min, max)
to:
* [[randomSeed]]()
* [[random]]()
Changed lines 188-190 from:
* [[attachInterrupt]](interrupt, function, mode)
* [[detachInterrupt]](interrupt)
to:
* [[attachInterrupt]]()
* [[detachInterrupt]]()
April 01, 2010, at 08:35 PM by David A. Mellis - adding tone() and noTone()
Added lines 147-148:
* [[tone]]()
* [[noTone]]()
March 09, 2010, at 12:10 PM by Tom Igoe -
Added lines 4-6:
''See the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. ''

March 09, 2010, at 12:09 PM by Tom Igoe -
February 06, 2010, at 09:31 AM by David A. Mellis -
Deleted lines 65-66:
* [[PortManipulation | Port Manipulation]]
January 29, 2010, at 01:26 AM by Paul Badger -
Changed lines 4-5 from:
The Arduino language is based on C/C++ and supports all standard C constructs and some C++ features. It links against [[http://www.nongnu.org/avr-libc/ | AVR Libc]] and allows the use of any of its functions; see its [[http://www.nongnu.org/avr-libc/user-manual/index.html | user manual]] for details.
to:
The Arduino language is based on C/C++ and supports all standard C constructs and some C++ features. It links against [[http://www.nongnu.org/avr-libc/user-manual/modules.html | AVR Libc]] and allows the use of any of its functions; see its [[http://www.nongnu.org/avr-libc/user-manual/index.html | user manual]] for details.
May 08, 2009, at 02:31 PM by David A. Mellis -
Changed lines 194-203 from:
'''Serial Communication'''

* [[Serial.begin]](speed)
* int [[Serial.available]]()
* int [[Serial.read]]()
* [[Serial.flush]]()
* [[Serial.print]](data)
* [[Serial.println]](data)

to:
'''Communication'''

* [[Serial]]
February 21, 2009, at 10:06 PM by David A. Mellis -
Changed lines 178-183 from:
to:
* [[bitRead]]()
* [[bitWrite]]()
* [[bitSet]]()
* [[bitClear]]()
* [[bit]]()
February 21, 2009, at 10:02 PM by David A. Mellis -
Added lines 175-178:
'''Bits and Bytes'''
* [[lowByte]]()
* [[highByte]]()
February 08, 2009, at 03:00 PM by David A. Mellis -
Added line 99:
* [[word]]
Added line 112:
* [[WordCast | word()]]
February 08, 2009, at 01:20 PM by David A. Mellis -
Added line 149:
* unsigned long [[micros]]()
January 06, 2009, at 10:28 PM by Paul Badger -
Added line 116:
* [[Scope | variable scope]]
November 02, 2008, at 11:01 AM by David A. Mellis -
Changed lines 2-3 from:
!Arduino Reference (extended)
to:
!Language Reference (extended)
November 02, 2008, at 11:01 AM by David A. Mellis -
Added lines 108-109:
* [[CharCast | char()]]
* [[ByteCast | byte()]]
October 20, 2008, at 11:26 PM by David A. Mellis -
Changed lines 189-190 from:

to:
'''Looking for something else?''' Try the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]].
October 20, 2008, at 11:25 PM by David A. Mellis -
Changed lines 106-111 from:
to:
!!!!Conversion

* [[IntCast | int()]]
* [[LongCast | long()]]
* [[FloatCast | float()]]
October 18, 2008, at 05:02 PM by David A. Mellis -
Deleted lines 108-109:
* [[scope|variable scope]]
Changed lines 112-114 from:
* [[PROGMEM]]

to:

Deleted line 115:
* [[cast]] (cast operator)
Deleted line 119:
* [[keywords]]
Deleted line 120:
* [[http://www.arduino.cc/en/Hacking/Atmega168Hardware|Atmega168 pin mapping]]
October 18, 2008, at 07:59 AM by Paul Badger -
Changed lines 114-115 from:

to:
* [[PROGMEM]]

October 18, 2008, at 07:58 AM by Paul Badger -
Added line 125:
* [[http://www.arduino.cc/en/Hacking/Atmega168Hardware|Atmega168 pin mapping]]
October 11, 2008, at 10:44 PM by David A. Mellis -
Deleted line 124:
* [[http://www.arduino.cc/en/Hacking/Atmega168Hardware|Atmega168 pin mapping]]
October 11, 2008, at 08:51 PM by David A. Mellis -
Changed lines 114-116 from:
* [[PROGMEM]]

to:

October 05, 2008, at 06:50 PM by Paul Badger -
Changed lines 23-24 from:
to:
* [[goto]]
September 18, 2008, at 02:58 PM by David A. Mellis -
Deleted lines 9-10:
In Arduino, the standard program entry point (main) is defined in the core and calls into two functions in a sketch. '''setup()''' is called once, then '''loop()''' is called repeatedly (until you reset your board).
September 06, 2008, at 09:04 PM by Paul Badger -
Added lines 110-111:
* [[scope|variable scope]]
September 06, 2008, at 08:19 PM by Paul Badger -
Changed line 35 from:
*[[Assignment | = ]] assignment operator
to:
*[[Assignment | = ]] (assignment operator)
September 06, 2008, at 02:12 AM by Paul Badger -
Added line 35:
*[[Assignment | = ]] assignment operator
May 07, 2008, at 09:44 PM by David A. Mellis -
Changed line 35 from:
* [[Arithmetic | plus ]] (addition)
to:
* [[Arithmetic | +&nbsp; ]] (addition)
April 30, 2008, at 03:49 PM by David A. Mellis -
Deleted lines 3-4:
''The '''[[Tutorial/Foundations|foundations page]]''' has extended descriptions of some hardware and software features.''
April 24, 2008, at 05:30 AM by David A. Mellis -
Changed line 8 from:
(:table width=90% border=0 cellpadding=5 cellspacing=0:)
to:
(:table width=100% border=0 cellpadding=5 cellspacing=0:)
March 31, 2008, at 01:26 PM by Paul Badger -
Changed lines 4-5 from:
'''[[Tutorial/Foundations|foundations page]]''' has extended descriptions of some hardware and software features.''
to:
''The '''[[Tutorial/Foundations|foundations page]]''' has extended descriptions of some hardware and software features.''
March 31, 2008, at 01:26 PM by Paul Badger -
Added lines 4-5:
'''[[Tutorial/Foundations|foundations page]]''' has extended descriptions of some hardware and software features.''
March 29, 2008, at 05:30 PM by David A. Mellis -
Added lines 173-177:
'''Interrupts'''

* [[interrupts]]()
* [[noInterrupts]]()
March 29, 2008, at 03:19 PM by David A. Mellis -
Added line 153:
* [[map]](value, fromLow, fromHigh, toLow, toHigh)
March 29, 2008, at 12:14 AM by David A. Mellis -
Added line 135:
* [[analogReference]](type)
February 28, 2008, at 04:49 PM by David A. Mellis -
Added line 85:
* [[Constants|true]] | [[Constants|false]]
January 17, 2008, at 05:02 PM by David A. Mellis - because hardware information doesn't belong in the programming language / api reference
Deleted line 133:
* [[AnalogPins|analog pins]]
January 16, 2008, at 05:40 PM by Paul Badger - people want to know where to find this info - why not here?
Added line 134:
* [[AnalogPins|analog pins]]
January 11, 2008, at 07:05 PM by David A. Mellis - moving the analog pin description to the hardware tutorials on the playground.
Deleted line 133:
* [[analogPins|analog pins]]
January 11, 2008, at 06:29 PM by David A. Mellis - moving variable scope to the code tutorials section (in the playground)
Deleted line 107:
* [[scope | variable scope]]
November 24, 2007, at 01:13 AM by David A. Mellis - we're documenting the Arduino language here, not AVR LIBC.
Changed lines 155-156 from:
* [[Mathh | math.h]]
to:
November 24, 2007, at 12:02 AM by Paul Badger -
Changed lines 86-88 from:
* [[fpconstants|floating point contstants]]

to:
* [[fpconstants|floating point constants]]

November 24, 2007, at 12:02 AM by Paul Badger -
Changed line 85 from:
* [[Integer Constants]]
to:
* [[integer constants]]
November 24, 2007, at 12:01 AM by Paul Badger -
Added line 85:
* [[Integer Constants]]
Changed lines 88-89 from:
* [[Integer Constants]]
to:
November 23, 2007, at 11:46 PM by Paul Badger -
November 23, 2007, at 11:45 PM by Paul Badger -
Changed lines 85-86 from:
to:
* [[fpconstants|floating point contstants]]
November 23, 2007, at 11:11 PM by Paul Badger -
Changed lines 154-155 from:
to:
* [[Mathh | math.h]]
November 21, 2007, at 09:11 PM by Paul Badger -
Deleted lines 118-119:
(:cell width=50%:)
Changed lines 124-125 from:

to:
(:cell width=50%:)
November 21, 2007, at 09:10 PM by Paul Badger -
Added lines 119-120:
(:cell width=50%:)
Changed lines 126-127 from:
(:cell width=50%:)
to:

November 21, 2007, at 04:33 PM by David A. Mellis - adding sqrt
Changed lines 153-154 from:
to:
* [[sqrt]](x)
November 21, 2007, at 04:27 PM by David A. Mellis -
Changed lines 152-153 from:
* [[pow]](x, n)
to:
* [[pow]](base, exponent)
November 21, 2007, at 04:24 PM by David A. Mellis -
Changed lines 152-153 from:
to:
* [[pow]](x, n)
November 21, 2007, at 04:22 PM by David A. Mellis -
Deleted lines 147-149:
* [[sin]](rad)
* [[cos]](rad)
* [[tan]](rad)
Added lines 153-157:
'''Trigonometry'''
* [[sin]](rad)
* [[cos]](rad)
* [[tan]](rad)
November 21, 2007, at 04:17 PM by David A. Mellis - adding trig functions (instead of general math.h page)
Changed lines 148-150 from:
* [[mathh|AVR math.h library]]
to:
* [[sin]](rad)
* [[cos]](rad)
* [[tan]](rad)
November 18, 2007, at 05:56 AM by Paul Badger -
Changed lines 55-57 from:
* [[deref | * dereference operator]]
* [[indir | & reference operator]]
to:
* [[pointer | * dereference operator]]
* [[pointer | & reference operator]]
November 18, 2007, at 05:55 AM by Paul Badger -
Changed lines 55-57 from:
* [[deref|* dereference operator]]
* [[indir|& indirection operator]]
to:
* [[deref | * dereference operator]]
* [[indir | & reference operator]]
November 18, 2007, at 05:46 AM by Paul Badger -
Changed lines 55-57 from:
* [[deref|*dereference operator]]
* [[indir|&indirection operator]]
to:
* [[deref|* dereference operator]]
* [[indir|& indirection operator]]
November 18, 2007, at 05:45 AM by Paul Badger -
Added lines 54-57:
!!!!Pointer Access Operators
* [[deref|*dereference operator]]
* [[indir|&indirection operator]]
November 14, 2007, at 03:49 AM by Paul Badger -
Changed line 119 from:
* [[http://www.arduino.cc/en/Hacking/Atmega168Hardware|Atmega168 pin mapping chart]]
to:
* [[http://www.arduino.cc/en/Hacking/Atmega168Hardware|Atmega168 pin mapping]]
November 14, 2007, at 03:48 AM by Paul Badger -
Changed line 119 from:
to:
* [[http://www.arduino.cc/en/Hacking/Atmega168Hardware|Atmega168 pin mapping chart]]
November 06, 2007, at 10:34 PM by Paul Badger -
Changed line 130 from:
* int [[analogPins|analog pins]]
to:
* [[analogPins|analog pins]]
November 06, 2007, at 10:33 PM by Paul Badger -
Added line 130:
* int [[analogPins|analog pins]]
October 15, 2007, at 11:55 AM by Paul Badger -
Changed lines 61-62 from:
* [[PortManipulation | port manipulation]]
to:

* [[PortManipulation | Port Manipulation]]
September 08, 2007, at 04:23 PM by Paul Badger -
Added line 88:
* [[unsigned char]]
September 01, 2007, at 05:17 AM by David A. Mellis -
Added lines 76-82:
!!!!Constants

* [[Constants|HIGH]] | [[Constants|LOW]]
* [[Constants|INPUT]] | [[Constants|OUTPUT]]

* [[Integer Constants]]
Changed lines 107-113 from:
!!!!Constants

* [[Constants|HIGH]] | [[Constants|LOW]]
* [[Constants|INPUT]] | [[Constants|OUTPUT]]

* [[IntegerConstants]]
to:
September 01, 2007, at 05:16 AM by David A. Mellis - moved discussion of AVR libraries to the introduction of this page.
Changed lines 166-172 from:
!!AVR Libraries

* [[UsingAVR | Using AVR libraries]]
* [[http://www.nongnu.org/avr-libc/user-manual/modules.html| Main Library page]]


to:


September 01, 2007, at 05:14 AM by David A. Mellis -
Deleted lines 14-15:
** [[void | void keyword]]
Added lines 76-78:
!!!! Data Types

* [[void | void keyword]]
September 01, 2007, at 05:14 AM by David A. Mellis - don't need a tutorial on functions and variables here.
Changed lines 14-15 from:
* [[Variable Declaration]]
* [[Function Declaration]]
to:
September 01, 2007, at 05:13 AM by David A. Mellis - moving reference to bottom of first column
Deleted lines 111-112:
(:cell width=50%:)
Added lines 117-118:
(:cell width=50%:)
September 01, 2007, at 05:13 AM by David A. Mellis - AREF pin doesn't belong here; instead we should have a function to put it in use.
Deleted lines 118-121:

!!Hardware
* [[AREF| Analog Reference Pin (AREF)]]
September 01, 2007, at 05:11 AM by David A. Mellis - removing the pin mappings; there are links from the port manipulation reference instead.
Deleted line 120:
* [[Atmega168Hardware| Atmega168 pin mapping]]
September 01, 2007, at 04:45 AM by David A. Mellis -
Changed line 1 from:
(:title Reference:)
to:
(:title Extended Reference:)
September 01, 2007, at 04:45 AM by David A. Mellis -
Changed lines 10-11 from:
An Arduino program run in two parts:
to:
In Arduino, the standard program entry point (main) is defined in the core and calls into two functions in a sketch. '''setup()''' is called once, then '''loop()''' is called repeatedly (until you reset your board).
September 01, 2007, at 04:37 AM by David A. Mellis -
Changed lines 2-7 from:
!Arduino Reference

!!!! Extended Version

The Arduino language is based on C/C++.
to:
!Arduino Reference (extended)

The Arduino language is based on C/C++ and supports all standard C constructs and some C++ features. It links against [[http://www.nongnu.org/avr-libc/ | AVR Libc]] and allows the use of any of its functions; see its [[http://www.nongnu.org/avr-libc/user-manual/index.html | user manual]] for details.
August 11, 2007, at 03:46 PM by Paul Badger -
Added lines 114-115:
(:cell width=50%:)
Added lines 120-122:


!!Hardware
Changed lines 124-125 from:

(:cell width=50%:)
to:
* [[AREF| Analog Reference Pin (AREF)]]
July 17, 2007, at 06:03 PM by Paul Badger -
Changed lines 66-67 from:
to:
* [[PortManipulation | port manipulation]]
July 17, 2007, at 05:58 PM by Paul Badger -
Changed lines 117-118 from:
to:
* [[Atmega168Hardware| Atmega168 pin mapping]]
July 17, 2007, at 05:55 PM by Paul Badger -
July 17, 2007, at 05:47 PM by Paul Badger -
Changed lines 168-169 from:
Arduino 0008 contains headers for the following libraries:
to:
* [[UsingAVR | Using AVR libraries]]
July 17, 2007, at 05:45 PM by Paul Badger -
Changed lines 166-173 from:
to:
!!AVR Libraries

Arduino 0008 contains headers for the following libraries:

* [[http://www.nongnu.org/avr-libc/user-manual/modules.html| Main Library page]]


July 17, 2007, at 05:36 PM by Paul Badger -
Deleted lines 79-82:
Variables are expressions that you can use in programs to store values, like e.g. sensor reading from an analog pin. They can have various types, which are described below.

!!!!Data Types
July 17, 2007, at 05:35 PM by Paul Badger -
Changed lines 106-107 from:
Constants are labels for certain values which are preset in the Arduino compiler. You do not need to define or initialize constants. Arduino includes the following pre-defined constants.
to:
Deleted lines 157-158:
These functions allow you to trigger a function when the input to a pin changes value.
Deleted lines 162-163:
Used for communication between the Arduino board and a computer or other devices. This communication happens via the Arduino board's serial or USB connection and on digital pins 0 (RX) and 1 (TX). Thus, if you use these functions, ''you cannot also use pins 0 and 1 for digital i/o.''
July 17, 2007, at 05:33 PM by Paul Badger -
Added line 145:
* [[mathh|AVR math.h library]]
July 17, 2007, at 05:30 PM by Paul Badger -
Deleted lines 15-17:

setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you would set [[pinMode]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
July 17, 2007, at 05:29 PM by Paul Badger -
Added lines 1-178:
(:title Reference:)
!Arduino Reference

!!!! Extended Version

The Arduino language is based on C/C++.

(:table width=90% border=0 cellpadding=5 cellspacing=0:)
(:cell width=50%:)
!! Structure

An Arduino program run in two parts:

* void [[setup]]()
* void [[loop]]()

setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you would set [[pinMode]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.

* [[Variable Declaration]]
* [[Function Declaration]]
** [[void | void keyword]]

!!!!Control Structures
* [[if]]
* [[if...else]]
* [[for]]
* [[switch case]]
* [[while]]
* [[doWhile | do... while]]
* [[break]]
* [[continue]]
* [[return]]

!!!!Further Syntax
* [[SemiColon|;]] (semicolon)
* [[Braces|{}]] (curly braces)
* [[Comments|//]] (single line comment)
* [[Comments|/* */]] (multi-line comment)
* [[Define | #define]]
* [[Include | #include]]

!!!!Arithmetic Operators
* [[Arithmetic | plus ]] (addition)
* [[Arithmetic | - ]] (subtraction)
* [[Arithmetic | *]] (multiplication)
* [[Arithmetic | /]] (division)
* [[modulo | %]] (modulo)

!!!!Comparison Operators
* [[if|==]] (equal to)
* [[if|!=]] (not equal to)
* [[if|<]] (less than)
* [[if|>]] (greater than)
* [[if|<=]] (less than or equal to)
* [[if|>=]] (greater than or equal to)

!!!!Boolean Operators
* [[Boolean | &&]] (and)
* [[Boolean | ||]] (or)
* [[Boolean | !]] (not)

!!!!Bitwise Operators
* [[BitwiseAnd | &]] (bitwise and)
* [[BitwiseAnd | |]] (bitwise or)
* [[BitwiseAnd | ^]] (bitwise xor)
* [[BitwiseXorNot | ~]] (bitwise not)
* [[Bitshift | <<]] (bitshift left)
* [[Bitshift | >>]] (bitshift right)

!!!!Compound Operators
* [[increment | ++]] (increment)
* [[increment | --]] (decrement)
* [[incrementCompound | += ]] (compound addition)
* [[incrementCompound | -= ]] (compound subtraction)
* [[incrementCompound | *= ]] (compound multiplication)
* [[incrementCompound | /= ]] (compound division)

* [[bitwiseCompound | &= ]] (compound bitwise and)
* [[bitwiseCompound | |= ]] (compound bitwise or)

!! Variables

Variables are expressions that you can use in programs to store values, like e.g. sensor reading from an analog pin. They can have various types, which are described below.

!!!!Data Types

* [[BooleanVariables|boolean]]
* [[char]]
* [[byte]]
* [[int]]
* [[unsigned int]]
* [[long]]
* [[unsigned long]]
* [[float]]
* [[double]]
* [[string]]
* [[array]]


!!!!Variable Scope & Qualifiers

* [[scope | variable scope]]
* [[static]]
* [[volatile]]
* [[const]]
* [[PROGMEM]]

!!!!Constants
Constants are labels for certain values which are preset in the Arduino compiler. You do not need to define or initialize constants. Arduino includes the following pre-defined constants.

* [[Constants|HIGH]] | [[Constants|LOW]]
* [[Constants|INPUT]] | [[Constants|OUTPUT]]

* [[IntegerConstants]]

!!!!Utilities

* [[cast]] (cast operator)
* [[sizeof]]() (sizeof operator)

!!Reference

* [[keywords]]
* [[ASCIIchart|ASCII chart]]

(:cell width=50%:)
!! Functions

'''Digital I/O'''
* [[pinMode]](pin, mode)
* [[digitalWrite]](pin, value)
* int [[digitalRead]](pin)

'''Analog I/O'''
* int [[analogRead]](pin)
* [[analogWrite]](pin, value) - ''PWM''

'''Advanced I/O'''
* [[shiftOut]](dataPin, clockPin, bitOrder, value)
* unsigned long [[pulseIn]](pin, value)

'''Time'''
* unsigned long [[millis]]()
* [[delay]](ms)
* [[delayMicroseconds]](us)

'''Math'''
* [[min]](x, y)
* [[max]](x, y)
* [[abs]](x)
* [[constrain]](x, a, b)

'''Random Numbers'''

* [[randomSeed]](seed)
* long [[random]](max)
* long [[random]](min, max)

'''External Interrupts'''

These functions allow you to trigger a function when the input to a pin changes value.

* [[attachInterrupt]](interrupt, function, mode)
* [[detachInterrupt]](interrupt)

'''Serial Communication'''

Used for communication between the Arduino board and a computer or other devices. This communication happens via the Arduino board's serial or USB connection and on digital pins 0 (RX) and 1 (TX). Thus, if you use these functions, ''you cannot also use pins 0 and 1 for digital i/o.''

* [[Serial.begin]](speed)
* int [[Serial.available]]()
* int [[Serial.read]]()
* [[Serial.flush]]()
* [[Serial.print]](data)
* [[Serial.println]](data)


(:tableend:)

Share