Reference.HomePage History

Hide minor edits - Show changes to output

November 07, 2014, at 04:43 PM by Arturo -
Changed lines 134-135 from:
!!! [[Functions | http://arduino.cc/en/Reference/FunctionDeclaration]]
to:
!!! [[ http://arduino.cc/en/Reference/FunctionDeclaration | Functions]]
November 07, 2014, at 04:42 PM by Arturo -
Changed lines 134-135 from:
!!! [[Functions]]
to:
!!! [[Functions | http://arduino.cc/en/Reference/FunctionDeclaration]]
November 07, 2014, at 04:36 PM by Arturo -
Changed lines 134-135 from:
!!! Functions
to:
!!! [[Functions]]
November 06, 2014, at 11:29 AM by Arturo -
Changed lines 129-131 from:


to:
*[[PROGMEM]]


February 10, 2014, at 12:19 PM by Scott Fitzgerald -
Changed line 83 from:
* [[Constants|INPUT]] | [[Constants|OUTPUT]]| [[Constants|INPUT_PULLUP]]
to:
* [[Constants|INPUT]] | [[Constants|OUTPUT]] | [[Constants|INPUT_PULLUP]]
February 10, 2014, at 12:18 PM by Scott Fitzgerald -
Added line 84:
* [[Constants|LED_BUILTIN]]
September 30, 2013, at 09:23 PM by Roberto Guido - todo's corrections
Changed lines 4-6 from:
Arduino programs can be divided in three main parts: ''structure'', ''values'' (variables and constants), and ''functions''.

(:table width=100% border=0 cellpadding=5 cellspacing=0:)
to:
%p class="subheader"%Arduino programs can be divided in three main parts: ''structure'', ''values'' (variables and constants), and ''functions''.

(:table width=100% border=0 cellpadding=5 cellspacing=0 class="borderColumn":)
Changed lines 8-9 from:
!! Structure
to:
!!! Structure
Changed lines 78-79 from:
!! Variables
to:
!!! Variables
Changed lines 132-134 from:

!! Functions
to:
!!! Functions
December 04, 2012, at 03:51 PM by Katia De Coi -
Changed line 135 from:
'''Digital I/O'''
to:
!!!!Digital I/O
Changed line 140 from:
'''Analog I/O'''
to:
!!!!Analog I/O
Changed lines 144-145 from:
''Due only''
to:

!!!!Due only
Changed line 149 from:
'''Advanced I/O'''
to:
!!!!Advanced I/O
Changed line 156 from:
'''Time'''
to:
!!!!Time
Changed line 162 from:
'''Math'''
to:
!!!!Math
Changed line 171 from:
'''Trigonometry'''
to:
!!!!Trigonometry
Changed lines 176-177 from:
'''Random Numbers'''
to:
!!!!Random Numbers
Changed lines 181-182 from:
'''Bits and Bytes'''
to:
!!!!Bits and Bytes
Changed lines 191-192 from:
'''External Interrupts'''
to:
!!!!External Interrupts
Changed lines 196-197 from:
'''Interrupts'''
to:
!!!!Interrupts
Changed lines 201-202 from:
'''Communication'''
to:
!!!!Communication
Changed lines 206-207 from:
'''USB (Leonardo and Due only)'''
to:
!!!!USB (Leonardo and Due only)
Changed lines 212-213 from:
'''Looking for something else?''' See the [[Libraries | libraries page]] for interfacing with particular types of hardware. Try the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]]. The Arduino language is based on C/C++. 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:
!!!!Looking for something else?
See the [[Libraries | libraries page]] for interfacing with particular types of hardware. Try the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]]. The Arduino language is based on C/C++. 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.
October 22, 2012, at 02:07 PM by Scott Fitzgerald -
Changed lines 205-206 from:
'''Leonardo Specific'''
to:
'''USB (Leonardo and Due only)'''
October 20, 2012, at 04:37 PM by Scott Fitzgerald -
Added line 101:
* [[short]]
September 20, 2012, at 06:12 PM by Scott Fitzgerald -
Changed lines 143-146 from:
to:
''Due only''
* [[analogReadResolution]]()
* [[analogWriteResolution]]()
March 14, 2012, at 09:00 PM by Scott Fitzgerald -
Changed line 83 from:
* [[Constants|INPUT]] | [[Constants|INPUT_PULLUP]] | [[Constants|OUTPUT]]
to:
* [[Constants|INPUT]] | [[Constants|OUTPUT]]| [[Constants|INPUT_PULLUP]]
March 14, 2012, at 08:59 PM by Scott Fitzgerald - added input_pullup to constants
Changed line 83 from:
* [[Constants|INPUT]] | [[Constants|OUTPUT]]
to:
* [[Constants|INPUT]] | [[Constants|INPUT_PULLUP]] | [[Constants|OUTPUT]]
December 07, 2011, at 01:41 AM by Scott Fitzgerald -
Added line 177:
Added line 202:
December 07, 2011, at 01:40 AM by Scott Fitzgerald -
Added lines 128-129:

Added lines 200-204:
'''Leonardo Specific'''
* [[MouseKeyboard | Keyboard ]]
* [[MouseKeyboard | Mouse ]]

November 26, 2011, at 10:38 PM by David A. Mellis -
Changed lines 196-197 from:
to:
* [[Stream]]
March 11, 2011, at 06:34 PM by David A. Mellis - shiftIn()
Added line 146:
* [[shiftIn]]()
October 21, 2010, at 02:18 PM by David A. Mellis -
Changed lines 74-76 from:
* [[bitwiseCompound | &= ]] (compound bitwise and)
* [[bitwiseCompound | |= ]] (compound bitwise or)
to:
* [[bitwiseCompoundAnd | &= ]] (compound bitwise and)
* [[bitwiseCompoundOr | |= ]] (compound bitwise or)
August 18, 2010, at 11:06 PM by David A. Mellis -
Changed lines 103-104 from:
* [[string]] string as a character array
* [[StringObject|String]] String data object
to:
* [[string]] - char array
* [[StringObject|String]] - object
August 13, 2010, at 11:28 PM by Tom Igoe -
Changed lines 103-104 from:
* [[string]]
to:
* [[string]] string as a character array
* [[StringObject|String]] String data object
August 12, 2010, at 01:18 AM by David A. Mellis -
Changed lines 103-104 from:
* [[string]] - char arrays
* [[StringClass | String]] - class
to:
* [[string]]
August 12, 2010, at 01:10 AM by David A. Mellis -
Changed lines 103-104 from:
* [[string]]
to:
* [[string]] - char arrays
* [[StringClass | String]] - class
August 12, 2010, at 01:09 AM by David A. Mellis -
Changed lines 103-104 from:
* [[string]] - char arrays
* [[StringClass | String]] - class
to:
* [[string]]
August 12, 2010, at 01:01 AM by David A. Mellis -
Changed line 104 from:
* [[StringClass]] - class
to:
* [[StringClass | String]] - class
August 12, 2010, at 01:01 AM by David A. Mellis -
Changed lines 103-104 from:
* [[string]]
to:
* [[string]] - char arrays
* [[StringClass]] - class
August 10, 2010, at 03:05 PM by David A. Mellis -
Changed lines 125-126 from:
* [[sizeof]]() (sizeof operator)
to:
* [[sizeof]]()
August 10, 2010, at 03:04 PM by David A. Mellis -
Changed lines 4-7 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. ''

Arduino programs can be divided in three main parts: ''structure'', ''values'' (variables and constants), and ''functions''. The Arduino language is based on C/C++.
to:
Arduino programs can be divided in three main parts: ''structure'', ''values'' (variables and constants), and ''functions''.
Changed lines 23-24 from:

to:
* [[goto]]
Changed lines 30-32 from:
to:
* [[Define | #define]]
* [[Include | #include]]
Changed lines 34-40 from:
* [[Assignment | = (assignment)]]
* [[Arithmetic | + (addition)]]
* [[Arithmetic | - (subtraction)]]
* [[Arithmetic | * (multiplication)]]
* [[Arithmetic | / (division)]]
* [[modulo | % (modulo)]]
to:
*[[Assignment | = ]] (assignment operator)
* [[Arithmetic | +  ]] (addition)
* [[Arithmetic | - ]] (subtraction)
* [[Arithmetic | *]] (multiplication)
* [[Arithmetic | /]] (division)
* [[modulo | %]] (modulo)
Added lines 54-65:
!!!!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)
Added lines 74-76:
* [[bitwiseCompound | &= ]] (compound bitwise and)
* [[bitwiseCompound | |= ]] (compound bitwise or)
Deleted line 77:
Changed lines 85-89 from:

* [[Integer Constants]]

!!!!Data Types
to:
* [[integer constants]]
* [[fpconstants|floating point constants]]


!!!! Data Types

* [[void | void]]
Added line 94:
* [[unsigned char]]
Added line 98:
* [[word]]
Changed lines 105-106 from:
* [[void]]
to:
Added line 111:
* [[WordCast | word()]]
Added lines 115-126:
!!!!Variable Scope & Qualifiers

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


!!!!Utilities

* [[sizeof]]() (sizeof operator)
Added line 128:
Changed lines 137-138 from:
* [[analogRead]]()
to:
* [[analogReference]]()
* [[analogRead]]()
Changed lines 149-150 from:
* [[micros]]()
* [[delay]]()
to:
* [[micros]]()
* [[delay]]()
Deleted line 159:
* [[sq]]()
Added lines 172-190:
'''Bits and Bytes'''
* [[lowByte]]()
* [[highByte]]()
* [[bitRead]]()
* [[bitWrite]]()
* [[bitSet]]()
* [[bitClear]]()
* [[bit]]()

'''External Interrupts'''

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

'''Interrupts'''

* [[interrupts]]()
* [[noInterrupts]]()
Changed lines 195-198 from:
[[<<]]

'''Didn't find something?''' Check the [[Extended | extended reference]] or the [[Libraries | libraries]]. Or see the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]].
to:
'''Looking for something else?''' See the [[Libraries | libraries page]] for interfacing with particular types of hardware. Try the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]]. The Arduino language is based on C/C++. 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.
April 02, 2010, at 05:12 AM by David A. Mellis - changing to three columns
Changed line 9 from:
(:cell width=50%:)
to:
(:cell width=33%:)
Added lines 62-63:
(:cell width=33%:)
Deleted lines 65-66:
Variables are expressions that you can use in programs to store values, such as a sensor reading from an analog pin.
Changed lines 67-68 from:
Constants are particular values with specific meanings.
to:
Deleted lines 75-76:
Variables can have various types, which are described below.
Changed lines 97-101 from:
!!Reference

* [[ASCIIchart|ASCII chart]]

(:cell width=50%:)
to:
(:cell width=33%:)
April 01, 2010, at 08:37 PM by David A. Mellis - removing return types
Changed lines 110-111 from:
* int [[digitalRead]]()
to:
* [[digitalRead]]()
Changed line 113 from:
* int [[analogRead]]()
to:
* [[analogRead]]()
Changed lines 120-121 from:
* unsigned long [[pulseIn]]()
to:
* [[pulseIn]]()
Changed lines 123-124 from:
* unsigned long [[millis]]()
* unsigned long [[micros]]()
to:
* [[millis]]()
* [[micros]]()
April 01, 2010, at 08:37 PM by David A. Mellis - removing parameter names
Changed lines 108-111 from:
* [[pinMode]](pin, mode)
* [[digitalWrite]](pin, value)
* int [[digitalRead]](pin)
to:
* [[pinMode]]()
* [[digitalWrite]]()
* int [[digitalRead]]()
Changed lines 113-115 from:
* int [[analogRead]](pin)
* [[analogWrite]](pin, value) - ''PWM''
to:
* int [[analogRead]]()
* [[analogWrite]]() - ''PWM''
Changed lines 119-121 from:
* [[shiftOut]](dataPin, clockPin, bitOrder, value)
* unsigned long [[pulseIn]](pin, value)
to:
* [[shiftOut]]()
* unsigned long [[pulseIn]]()
Changed lines 125-127 from:
* [[delay]](ms)
* [[delayMicroseconds]](us)
to:
* [[delay]]()
* [[delayMicroseconds]]()
Changed lines 129-137 from:
* [[min]](x, y)
* [[max]](x, y)
* [[abs]](x)
* [[constrain]](x, a, b)
* [[map]](value, fromLow, fromHigh, toLow, toHigh)
* [[pow]](base, exponent)
* [[sq]](x)
* [[sqrt]](x)
to:
* [[min]]()
* [[max]]()
* [[abs]]()
* [[constrain]]()
* [[map]]()
* [[pow]]()
* [[sq]]()
* [[sqrt]]()
Changed lines 139-142 from:
* [[sin]](rad)
* [[cos]](rad)
* [[tan]](rad)
to:
* [[sin]]()
* [[cos]]()
* [[tan]]()
Changed lines 145-148 from:
* [[randomSeed]](seed)
* long [[random]](max)
* long [[random]](min, max)
to:
* [[randomSeed]]()
* [[random]]()
February 01, 2010, at 04:53 PM by David A. Mellis -
Added lines 117-118:
* [[tone]]()
* [[noTone]]()
January 09, 2010, at 06:36 PM by David A. Mellis -
Deleted lines 116-117:
* [[tone]]()
* [[noTone]]()
January 09, 2010, at 06:35 PM by David A. Mellis -
Added lines 117-118:
* [[tone]]()
* [[noTone]]()
December 23, 2009, at 11:49 PM by David A. Mellis -
Changed lines 12-14 from:
* void [[setup]]()
* void [[loop]]()
to:
* [[setup]]()
* [[loop]]()
August 15, 2009, at 02:07 PM by David A. Mellis -
Deleted lines 7-8:
Here's a [[StyleGuide| style guide]] that helps with writing examples for beginners.
May 08, 2009, at 02:30 PM by David A. Mellis -
Changed lines 149-159 from:
'''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)
to:
'''Communication'''

* [[Serial]]
April 29, 2009, at 01:21 AM by Tom Igoe -
Added lines 8-9:
Here's a [[StyleGuide| style guide]] that helps with writing examples for beginners.
February 08, 2009, at 01:24 PM by David A. Mellis -
Changed lines 25-27 from:
* [[goto]]

to:

February 08, 2009, at 01:19 PM by David A. Mellis -
Added line 123:
* unsigned long [[micros]]()
November 02, 2008, at 10:53 AM by David A. Mellis -
Added line 96:
* [[ByteCast | byte()]]
November 02, 2008, at 10:51 AM by David A. Mellis -
Added line 95:
* [[CharCast | char()]]
October 20, 2008, at 11:24 PM by David A. Mellis -
Changed lines 158-159 from:
'''Didn't find something?''' Check the [[Extended | extended reference]] or the [[Libraries | libraries]].
to:
'''Didn't find something?''' Check the [[Extended | extended reference]] or the [[Libraries | libraries]]. Or see the list of [[http://www.arduino.cc/playground/Main/GeneralCodeLibrary | community-contributed code]].
October 18, 2008, at 09:04 PM by David A. Mellis -
Added lines 93-98:
!!!!Conversion

* [[IntCast | int()]]
* [[LongCast | long()]]
* [[FloatCast | float()]]
October 18, 2008, at 06:55 PM by Paul Badger -
October 11, 2008, at 10:50 PM by David A. Mellis -
Added line 125:
* [[sq]](x)
October 05, 2008, at 06:13 AM by Paul Badger -
Changed lines 37-41 from:
* [[Arithmetic | - ]] (subtraction)
* [[Arithmetic | *]] (multiplication)
* [[Arithmetic | /]] (division)
* [[modulo | %]] (modulo)
to:
* [[Arithmetic | - (subtraction)]]
* [[Arithmetic | * (multiplication)]]
* [[Arithmetic | / (division)]]
* [[modulo | % (modulo)]]
October 05, 2008, at 05:32 AM by Paul Badger -
Changed lines 25-27 from:
to:
* [[goto]]

October 04, 2008, at 01:38 PM by David A. Mellis -
Changed line 33 from:
* [[Assignment | = (assignment operator)]]
to:
* [[Assignment | = (assignment)]]
September 28, 2008, at 12:35 PM by David A. Mellis -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. ''
September 27, 2008, at 04:19 PM by David A. Mellis -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. Further programming concepts may be found on the '''[[../Tutorial/Foundations | Learning / Foundations ]]''' page.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.
September 27, 2008, at 06:12 AM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. Further programming concepts may be found on the '''[[../Tutorial/Foundations | Learning / Foundations ]] '' page.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. Further programming concepts may be found on the '''[[../Tutorial/Foundations | Learning / Foundations ]]''' page.''
September 27, 2008, at 06:11 AM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[../Tutorial/Foundations | Learning / Foundations ]] page.
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. Further programming concepts may be found on the '''[[../Tutorial/Foundations | Learning / Foundations ]] '' page.''
September 26, 2008, at 03:53 PM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[../Learning/Foundations | Learning / Foundations ]] page.
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[../Tutorial/Foundations | Learning / Foundations ]] page.
September 26, 2008, at 03:53 PM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[Learning.Foundations | Learning / Foundations ]] page.
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[../Learning/Foundations | Learning / Foundations ]] page.
September 26, 2008, at 03:52 PM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[Learning/Foundations | Learning / Foundations ]] page.
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[Learning.Foundations | Learning / Foundations ]] page.
September 26, 2008, at 03:52 PM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.'' Further programming concepts may be found on the [[Learning/Foundations | Learning / Foundations ]] page.
September 18, 2008, at 02:58 PM by David A. Mellis -
Deleted lines 14-17:
* [[Variable Declaration]]
* [[Function Declaration]]

September 18, 2008, at 02:56 PM by David A. Mellis -
Deleted lines 11-12:
An Arduino program run in two parts:
Deleted lines 14-15:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you would set [[pinMode|pinModes]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
Changed lines 17-19 from:
** [[void | void]]

to:

Changed lines 93-94 from:
to:
* [[void]]
September 06, 2008, at 09:22 PM by Paul Badger -
Deleted line 24:
* [[Assignment | = (assignment operator)]]
Added line 42:
* [[Assignment | = (assignment operator)]]
September 06, 2008, at 07:19 PM by Paul Badger -
Added line 23:
September 06, 2008, at 02:45 AM by Paul Badger -
Added line 24:
* [[Assignment | = (assignment operator)]]
July 02, 2008, at 10:11 PM by David A. Mellis -
Changed lines 2-3 from:
!Arduino Reference
to:
!Language Reference
May 07, 2008, at 09:40 PM by David A. Mellis -
Changed line 41 from:
* [[Arithmetic | plus ]] (addition)
to:
* [[Arithmetic | + (addition)]]
April 29, 2008, at 05:33 PM by David A. Mellis -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.''
April 29, 2008, at 05:33 PM by David A. Mellis -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The '''[[Tutorial/Foundations|foundations page]]''' has extended descriptions of some hardware and software features.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.
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:24 PM by Paul Badger -
March 29, 2008, at 05:39 PM by David A. Mellis -
Changed lines 128-135 from:
to:
* [[pow]](base, exponent)
* [[sqrt]](x)

'''Trigonometry'''
* [[sin]](rad)
* [[cos]](rad)
* [[tan]](rad)
March 29, 2008, at 03:18 PM by David A. Mellis -
Changed lines 127-128 from:
to:
* [[map]](value, fromLow, fromHigh, toLow, toHigh)
March 08, 2008, at 05:05 AM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The '''[[Tutorial/Foundations|Foundations page]]''' has extended descriptions of some hardware and software features.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The '''[[Tutorial/Foundations|foundations page]]''' has extended descriptions of some hardware and software features.''
March 08, 2008, at 05:04 AM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The [[Tutorial/Foundations|Foundations page]] has extended descriptions of hardware and software features.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The '''[[Tutorial/Foundations|Foundations page]]''' has extended descriptions of some hardware and software features.''
March 08, 2008, at 05:03 AM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The [[Tutorial/Foundations|Foundations page has extended descriptions of hardware and software features.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The [[Tutorial/Foundations|Foundations page]] has extended descriptions of hardware and software features.''
March 08, 2008, at 05:03 AM by Paul Badger -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware. The [[Tutorial/Foundations|Foundations page has extended descriptions of hardware and software features.''
March 06, 2008, at 04:01 PM by David A. Mellis -
Changed lines 4-5 from:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages and the '''[[Libraries | libraries page]]''' for interfacing with particular types of hardware.''
Changed lines 147-148 from:
'''Didn't find something?''' Check the [[Extended | extended reference]].
to:
'''Didn't find something?''' Check the [[Extended | extended reference]] or the [[Libraries | libraries]].
February 28, 2008, at 04:49 PM by David A. Mellis -
Changed lines 77-78 from:
to:
* [[Constants|true]] | [[Constants|false]]
November 24, 2007, at 07:42 AM by Paul Badger -
Changed line 14 from:
* void [[setup]]().
to:
* void [[setup]]()
November 24, 2007, at 07:39 AM by Paul Badger - test the summary feature
Changed line 14 from:
* void [[setup]]()
to:
* void [[setup]]().
November 05, 2007, at 10:44 AM by David A. Mellis -
Deleted line 108:
* [[analogPins | analog pins]]
November 04, 2007, at 04:53 AM by Paul Badger -
Added line 109:
* [[analogPins | analog pins]]
Deleted line 110:
* [[analogPins | analog pins]]
November 04, 2007, at 04:01 AM by Paul Badger -
Changed line 110 from:
* [[analogPins | configuring analog pins]]
to:
* [[analogPins | analog pins]]
November 04, 2007, at 03:58 AM by Paul Badger -
November 04, 2007, at 03:58 AM by Paul Badger -
Changed lines 109-110 from:
* int [[analogRead]](pin)
to:
* int [[analogRead]](pin)
* [[analogPins | configuring analog pins]]
September 01, 2007, at 06:05 AM by David A. Mellis -
Changed lines 2-3 from:
!Arduino Reference (standard)
to:
!Arduino Reference
September 01, 2007, at 05:46 AM by David A. Mellis -
Changed lines 6-7 from:
Arduino programs can be divided in three main parts: '''structure''', '''values''' (variables and constants), and '''functions'''. The Arduino language is based on C/C++.
to:
Arduino programs can be divided in three main parts: ''structure'', ''values'' (variables and constants), and ''functions''. The Arduino language is based on C/C++.
September 01, 2007, at 05:46 AM by David A. Mellis -
Changed lines 4-5 from:
''See the'' '''[[Extended | extended reference]]''' ''for more advanced features of the Arduino languages.''
to:
''See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages.''
September 01, 2007, at 05:45 AM by David A. Mellis -
Changed lines 4-5 from:
See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages.
to:
''See the'' '''[[Extended | extended reference]]''' ''for more advanced features of the Arduino languages.''
September 01, 2007, at 05:45 AM by David A. Mellis -
Changed lines 4-5 from:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.''
to:
See the '''[[Extended | extended reference]]''' for more advanced features of the Arduino languages.
September 01, 2007, at 05:44 AM by David A. Mellis -
Changed lines 39-41 from:
* [[Define | #define]]
* [[Include | #include]]
to:
September 01, 2007, at 05:43 AM by David A. Mellis -
Added lines 146-147:
[[<<]]
September 01, 2007, at 05:43 AM by David A. Mellis -
Added lines 146-147:
'''Didn't find something?''' Check the [[Extended | extended reference]].
September 01, 2007, at 05:40 AM by David A. Mellis - removing things that only belong in the extended reference.
Deleted lines 61-68:
!!!!Bitwise Operators
* [[BitwiseAnd | &]] (bitwise and)
* [[BitwiseAnd | |]] (bitwise or)
* [[BitwiseAnd | ^]] (bitwise xor)
* [[BitwiseXorNot | ~]] (bitwise not)
* [[Bitshift | <<]] (bitshift left)
* [[Bitshift | >>]] (bitshift right)
Deleted lines 69-71:
* [[bitwiseCompound | &= ]] (compound bitwise and)
* [[bitwiseCompound | |= ]] (compound bitwise or)
Deleted lines 97-109:

!!!!Variable Scope & Qualifiers

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


!!!!Utilities

* [[cast]] (cast operator)
Deleted line 99:
* [[keywords]]
Deleted lines 134-140:
'''External Interrupts'''

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

* [[attachInterrupt]](interrupt, function, mode)
* [[detachInterrupt]](interrupt)
September 01, 2007, at 05:26 AM by David A. Mellis -
Changed lines 121-122 from:
* [[sizeof]]() (sizeof operator)
to:
Changed lines 177-178 from:
[[Extended]]
to:
September 01, 2007, at 05:25 AM by David A. Mellis -
Changed lines 2-3 from:
!Arduino Reference (basic)
to:
!Arduino Reference (standard)
September 01, 2007, at 05:24 AM by David A. Mellis -
Changed lines 4-6 from:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.'' [[<<]]

to:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.''
September 01, 2007, at 05:24 AM by David A. Mellis -
Changed lines 4-6 from:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.'' \\

to:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.'' [[<<]]

September 01, 2007, at 05:24 AM by David A. Mellis -
Changed lines 4-6 from:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.''

to:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.'' \\

September 01, 2007, at 05:23 AM by David A. Mellis -
Changed lines 6-7 from:
[[<<]]
to:
September 01, 2007, at 05:23 AM by David A. Mellis -
Added lines 6-7:
[[<<]]
September 01, 2007, at 05:23 AM by David A. Mellis -
Changed lines 4-5 from:
''For more advanced features of the Arduino language, see the [[Extended | extended reference]].''
to:
''The [[Extended | extended reference]] covers more advanced features of the Arduino language.''
September 01, 2007, at 05:22 AM by David A. Mellis -
Changed lines 2-3 from:
!Arduino Reference
to:
!Arduino Reference (basic)

''For more advanced features of the Arduino language, see the [[Extended | extended reference]].''
September 01, 2007, at 05:19 AM by David A. Mellis -
Changed lines 84-85 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:
Constants are particular values with specific meanings.
September 01, 2007, at 05:18 AM by David A. Mellis -
Changed lines 81-82 from:
Variables are expressions that you can use in programs to store values, such as a sensor reading from an analog pin. They can have various types, which are described below.
to:
Variables are expressions that you can use in programs to store values, such as a sensor reading from an analog pin.

!!!!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]]

* [[Integer Constants]]
Added lines 93-94:
Variables can have various types, which are described below.
Changed lines 115-122 from:
!!!!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]]
to:
September 01, 2007, at 04:46 AM by David A. Mellis - removing PROGMEM (doesn't belong in the basic reference)
Changed lines 104-105 from:
* [[PROGMEM]]
to:
September 01, 2007, at 04:45 AM by David A. Mellis -
Changed lines 10-11 from:
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).
to:
An Arduino program run in two parts:
Added lines 15-16:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you would set [[pinMode|pinModes]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
September 01, 2007, at 04:44 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).
Deleted lines 14-15:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you would set [[pinMode|pinModes]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
August 23, 2007, at 09:24 PM by Paul Badger -
Changed lines 15-16 from:
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.
to:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you would set [[pinMode|pinModes]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
August 23, 2007, at 09:19 PM by Paul Badger -
Changed lines 81-82 from:
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.
to:
Variables are expressions that you can use in programs to store values, such as a sensor reading from an analog pin. They can have various types, which are described below.
July 17, 2007, at 06:10 PM by Paul Badger -
Changed lines 19-20 from:
** [[void | void keyword]]
to:
** [[void | void]]
July 17, 2007, at 05:27 PM by Paul Badger -
July 17, 2007, at 05:27 PM by Paul Badger -
Changed lines 174-175 from:

to:
[[Extended]]
July 17, 2007, at 01:36 PM by Paul Badger -
July 17, 2007, at 01:35 PM by Paul Badger -
Changed lines 19-20 from:
to:
** [[void | void keyword]]
July 17, 2007, at 06:47 AM by Paul Badger -
Added lines 31-38:
!!!!Further Syntax
* [[SemiColon|;]] (semicolon)
* [[Braces|{}]] (curly braces)
* [[Comments|//]] (single line comment)
* [[Comments|/* */]] (multi-line comment)
* [[Define | #define]]
* [[Include | #include]]
Deleted lines 77-85:

!!!!Further Syntax
* [[SemiColon|;]] (semicolon)
* [[Braces|{}]] (curly braces)
* [[Comments|//]] (single line comment)
* [[Comments|/* */]] (multi-line comment)
* [[Define | #define]]
* [[Include | #include]]
July 17, 2007, at 06:05 AM by Paul Badger -
Changed lines 29-30 from:
to:
* [[return]]
July 17, 2007, at 04:42 AM by Paul Badger -
Changed lines 173-174 from:
[[Alpha]]
to:

July 17, 2007, at 04:41 AM by Paul Badger -
July 17, 2007, at 04:41 AM by Paul Badger -
July 17, 2007, at 04:40 AM by Paul Badger -
Changed lines 173-174 from:
to:
[[Alpha]]
July 16, 2007, at 12:56 PM by Paul Badger -
Changed lines 31-36 from:
* [[Arithmetic | plus ]](addition)
* [[Arithmetic | - ]](subtraction)
* [[Arithmetic | *]](multiplication)
* [[Arithmetic | /]](division)
* [[modulo | %]](modulo)
to:
* [[Arithmetic | plus ]] (addition)
* [[Arithmetic | - ]] (subtraction)
* [[Arithmetic | *]] (multiplication)
* [[Arithmetic | /]] (division)
* [[modulo | %]] (modulo)
July 16, 2007, at 12:55 PM by Paul Badger -
Changed lines 63-69 from:
* [[incrementCompound | += ]] (compound multiplication)
* [[incrementCompound | -= ]] (compound division)

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

to:
* [[incrementCompound | *= ]] (compound multiplication)
* [[incrementCompound | /= ]] (compound division)

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

July 16, 2007, at 12:54 PM by Paul Badger -
Changed lines 61-62 from:
* [[incrementCompound | += ]] (compound increment)
* [[incrementCompound | -= ]] (compound decrement)
to:
* [[incrementCompound | += ]] (compound addition)
* [[incrementCompound | -= ]] (compound subtraction)
* [[incrementCompound | += ]] (compound multiplication)
* [[incrementCompound | -= ]] (compound division)
July 16, 2007, at 12:12 PM by Paul Badger -
Changed lines 60-62 from:
* [[decrement | --]] (decrement)
to:
* [[increment | --]] (decrement)
* [[incrementCompound | += ]] (compound increment)
* [[incrementCompound | -= ]] (compound decrement)
July 16, 2007, at 11:48 AM by Paul Badger -
Changed lines 60-64 from:
* [[decrement | |]] (decrement)
* [[ | &= ]] (bitwise and)
* [[ | |= ]] (bitwise or)

to:
* [[decrement | --]] (decrement)
* [[bitwiseCompound | &= ]] (bitwise and)
* [[bitwiseCompound | |= ]] (bitwise or)

July 16, 2007, at 11:46 AM by Paul Badger -
Added lines 58-64:
!!!!Compound Operators
* [[increment | ++]] (increment)
* [[decrement | |]] (decrement)
* [[ | &= ]] (bitwise and)
* [[ | |= ]] (bitwise or)

June 12, 2007, at 01:57 AM by Paul Badger -
Changed lines 91-92 from:
to:
* [[PROGMEM]]
May 29, 2007, at 09:34 PM by Paul Badger -
Changed lines 85-86 from:
!!!!Variable Scope
to:
!!!!Variable Scope & Qualifiers
Changed lines 90-91 from:
to:
* [[const]]
May 28, 2007, at 08:50 PM by Paul Badger -
Added line 72:
* [[BooleanVariables|boolean]]
May 27, 2007, at 02:41 AM by Paul Badger -
Changed lines 106-107 from:
* [[ASCII chart]]
to:
* [[ASCIIchart|ASCII chart]]
May 27, 2007, at 02:41 AM by Paul Badger -
Changed lines 106-107 from:
to:
* [[ASCII chart]]
May 26, 2007, at 02:08 PM by Paul Badger -
Changed line 26 from:
* [[do... while]]
to:
* [[doWhile | do... while]]
May 26, 2007, at 02:07 PM by Paul Badger -
Added line 26:
* [[do... while]]
May 26, 2007, at 01:36 PM by Paul Badger -
Changed lines 26-28 from:
to:
* [[break]]
* [[continue]]
May 18, 2007, at 05:36 AM by Paul Badger -
Changed lines 85-86 from:
to:
* [[volatile]]
May 17, 2007, at 06:51 PM by David A. Mellis -
Changed lines 4-5 from:
Arduino programs can be divided in three main parts: '''structure''', '''values''' (variables and constants), and '''functions'''.
to:
Arduino programs can be divided in three main parts: '''structure''', '''values''' (variables and constants), and '''functions'''. The Arduino language is based on C/C++.
May 17, 2007, at 06:09 PM by Paul Badger -
Changed lines 110-111 from:
* [[pullups | pullup resistors]]
to:
May 17, 2007, at 06:08 PM by Paul Badger -
Changed lines 110-111 from:
* pullup resistors
to:
* [[pullups | pullup resistors]]
May 17, 2007, at 06:08 PM by Paul Badger -
Changed lines 110-111 from:
to:
* pullup resistors
May 04, 2007, at 01:01 PM by Paul Badger -
Changed lines 83-85 from:
* Variable scope
* Static
to:
* [[scope | variable scope]]
* [[static]]
May 04, 2007, at 01:00 PM by Paul Badger -
Added lines 80-85:

!!!!Variable Scope

* Variable scope
* Static
April 29, 2007, at 12:06 PM by David A. Mellis - math.h isn't supported, so don't document it here.
Changed lines 123-124 from:
* [[mathHeader|math.h]](trig,sqrt,pow etc.)
to:
April 29, 2007, at 12:03 PM by David A. Mellis - API changes (including exposing internal registers) should be discussed on the developers list
Changed lines 54-55 from:
* [[port manipulation]]
to:
Changed lines 96-98 from:
* [[Atmega8 hardware]]
* [[Atmega168 hardware]]
to:
April 28, 2007, at 05:18 AM by Paul Badger -
Changed lines 126-127 from:
* [[mathHeader|math.h]](math.h - trig,sqrt,pow etc.)
to:
* [[mathHeader|math.h]](trig,sqrt,pow etc.)
April 28, 2007, at 05:18 AM by Paul Badger -
Changed lines 126-127 from:
* [[math]](math.h - trig,sqrt,pow etc.)
to:
* [[mathHeader|math.h]](math.h - trig,sqrt,pow etc.)
April 28, 2007, at 05:17 AM by Paul Badger -
Changed lines 126-127 from:
* [[mathHeader]](trig,sqrt,pow etc.)
to:
* [[math]](math.h - trig,sqrt,pow etc.)
April 28, 2007, at 05:08 AM by Paul Badger -
Added line 77:
* [[double]]
April 28, 2007, at 05:06 AM by Paul Badger -
Changed lines 125-126 from:
* [[math.h]](trig,sqrt,pow etc.)
to:
* [[mathHeader]](trig,sqrt,pow etc.)
April 28, 2007, at 04:25 AM by Paul Badger -
Changed lines 125-126 from:
to:
* [[math.h]](trig,sqrt,pow etc.)
April 26, 2007, at 04:34 AM by Paul Badger -
Changed lines 86-87 from:
* [[Constants]]
to:
* [[IntegerConstants]]
April 26, 2007, at 04:31 AM by Paul Badger -
Changed lines 86-87 from:
* [[Integer Constants]]
to:
* [[Constants]]
Changed line 90 from:
* [[cast]](cast operator)
to:
* [[cast]] (cast operator)
April 26, 2007, at 04:24 AM by Paul Badger -
Changed lines 62-63 from:
* [[Define | #include]]
to:
* [[Include | #include]]
April 26, 2007, at 03:58 AM by Paul Badger -
Changed lines 62-63 from:
to:
* [[Define | #include]]
April 24, 2007, at 05:32 PM by Paul Badger -
Changed lines 54-55 from:
to:
* [[port manipulation]]
Changed lines 97-98 from:
* [[port manipulation]]
to:
April 24, 2007, at 07:58 AM by Paul Badger -
Changed lines 96-97 from:
* [[Port Manipulation]]
to:
* [[port manipulation]]
April 24, 2007, at 07:57 AM by Paul Badger -
Changed lines 91-92 from:
!!!!Reference
to:
!!Reference
April 24, 2007, at 07:29 AM by Paul Badger -
Changed lines 96-97 from:
to:
* [[Port Manipulation]]
April 24, 2007, at 05:29 AM by Paul Badger -
Changed lines 94-96 from:
to:
* [[Atmega8 hardware]]
* [[Atmega168 hardware]]
April 18, 2007, at 03:49 PM by Paul Badger -
Changed line 50 from:
* [[BitwiseXorNot | ^]] (bitwise xor)
to:
* [[BitwiseAnd | ^]] (bitwise xor)
April 18, 2007, at 06:22 AM by Paul Badger -
Changed lines 93-94 from:
* [[keywords]])
to:
* [[keywords]]
April 18, 2007, at 06:21 AM by Paul Badger -
Changed lines 93-94 from:
* [[keywords]](keywords)
to:
* [[keywords]])
April 18, 2007, at 06:11 AM by Paul Badger -
Changed lines 91-94 from:
to:
!!!!Reference

* [[keywords]](keywords)
April 18, 2007, at 04:08 AM by Paul Badger -
Changed line 50 from:
* [[Bitwise | ^]] (bitwise xor)
to:
* [[BitwiseXorNot | ^]] (bitwise xor)
April 18, 2007, at 03:49 AM by Paul Badger -
Changed line 51 from:
* [[Bitwise | ~]] (bitwise not)
to:
* [[BitwiseXorNot | ~]] (bitwise not)
April 18, 2007, at 03:31 AM by Paul Badger -
Changed lines 48-49 from:
* [[Bitwise | &]] (bitwise and)
* [[Bitwise | |]] (bitwise or)
to:
* [[BitwiseAnd | &]] (bitwise and)
* [[BitwiseAnd | |]] (bitwise or)
April 16, 2007, at 06:15 PM by Paul Badger -
Added line 71:
* [[unsigned int]]
Added line 73:
* [[unsigned long]]
April 16, 2007, at 06:02 PM by Paul Badger -
Changed lines 2-3 from:
!!Arduino Reference
to:
!Arduino Reference
April 16, 2007, at 09:02 AM by David A. Mellis -
Added lines 66-67:
!!!!Data Types
Changed lines 75-77 from:
* [[cast]](cast operator)
* [[sizeof]]() (sizeof operator)
to:
Changed lines 84-85 from:

to:
!!!!Utilities

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

April 16, 2007, at 08:56 AM by Paul Badger -
Changed line 28 from:
* [[Arithmetic | + ]](addition)
to:
* [[Arithmetic | plus ]](addition)
April 16, 2007, at 08:55 AM by David A. Mellis -
Changed line 28 from:
* [[Arithmetic | plus ]](addition)
to:
* [[Arithmetic | + ]](addition)
Changed lines 48-51 from:
* [[Bitwise | &]] (and)
* [[Bitwise | |]] (or)
* [[Bitwise | ^]] (xor)
* [[Bitwise | ~]] (not)
to:
* [[Bitwise | &]] (bitwise and)
* [[Bitwise | |]] (bitwise or)
* [[Bitwise | ^]] (bitwise xor)
* [[Bitwise | ~]] (bitwise not)
April 16, 2007, at 07:22 AM by Paul Badger -
Changed lines 52-54 from:
to:
* [[Bitshift | <<]] (bitshift left)
* [[Bitshift | >>]] (bitshift right)
April 16, 2007, at 07:19 AM by Paul Badger -
April 16, 2007, at 06:47 AM by Paul Badger -
Changed lines 51-52 from:
* [[Bitwise | !]] (not)
to:
* [[Bitwise | ~]] (not)
April 16, 2007, at 06:35 AM by Paul Badger -
Changed line 42 from:
!!!!Boolean Operations
to:
!!!!Boolean Operators
Changed line 47 from:
!!!!Bitwise Operations
to:
!!!!Bitwise Operators
April 16, 2007, at 06:34 AM by Paul Badger -
Added lines 47-52:
!!!!Bitwise Operations
* [[Bitwise | &]] (and)
* [[Bitwise | |]] (or)
* [[Bitwise | ^]] (xor)
* [[Bitwise | !]] (not)
April 16, 2007, at 06:31 AM by Paul Badger -
Changed lines 66-67 from:
* [[sizeof]](sizeof operator)
to:
* [[sizeof]]() (sizeof operator)
April 15, 2007, at 11:40 PM by Paul Badger -
Changed lines 66-67 from:
to:
* [[sizeof]](sizeof operator)
April 15, 2007, at 11:17 PM by Paul Badger -
Changed lines 65-66 from:
to:
* [[cast]](cast operator)
April 15, 2007, at 10:05 PM by Paul Badger -
Changed lines 28-31 from:
* [[addition | + ]](addition)
* [[subtraction | - ]](subtraction)
* [[multiplication | *]](multiplication)
* [[division | /]](division)
to:
* [[Arithmetic | plus ]](addition)
* [[Arithmetic | - ]](subtraction)
* [[Arithmetic | *]](multiplication)
* [[Arithmetic | /]](division)
April 15, 2007, at 09:58 PM by Paul Badger -
April 15, 2007, at 09:55 PM by Paul Badger -
April 15, 2007, at 09:49 PM by Paul Badger -
Changed lines 28-31 from:
* [[addition | +]](modulo)
* [[subtraction | -]](modulo)
* [[multiplication | *]](modulo)
* [[dvivision | /]](modulo)
to:
* [[addition | + ]](addition)
* [[subtraction | - ]](subtraction)
* [[multiplication | *]](multiplication)
* [[division | /]](division)
April 15, 2007, at 09:47 PM by Paul Badger -
April 15, 2007, at 09:47 PM by Paul Badger -
Added lines 28-31:
* [[addition | +]](modulo)
* [[subtraction | -]](modulo)
* [[multiplication | *]](modulo)
* [[dvivision | /]](modulo)
April 14, 2007, at 06:27 AM by David A. Mellis -
Changed lines 28-29 from:
* [[%]](modulo)
to:
* [[modulo | %]](modulo)
April 14, 2007, at 06:20 AM by Paul Badger -
April 14, 2007, at 06:18 AM by Paul Badger -
April 14, 2007, at 06:17 AM by Paul Badger -
April 14, 2007, at 05:53 AM by David A. Mellis - moving % (modulo) the left column under "arithmetic operators"; keeping the right col. for functions
Changed lines 15-16 from:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you woiuld set [[pinMode]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
to:
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.
Added lines 27-29:
!!!!Arithmetic Operators
* [[%]](modulo)
Deleted line 93:
* [[%]](modulo)
April 14, 2007, at 05:50 AM by Paul Badger -
Changed line 91 from:
* [[% (modulo)]]
to:
* [[%]](modulo)
April 14, 2007, at 05:00 AM by Paul Badger -
Changed line 91 from:
* [[%]] (modulo)
to:
* [[% (modulo)]]
April 14, 2007, at 04:49 AM by Paul Badger -
Changed line 91 from:
to:
* [[%]] (modulo)
December 26, 2006, at 01:25 AM by David A. Mellis -
Changed lines 4-6 from:
Arduino provides a library of functions on top of the standard AVR C/C++ routines. The main file of your sketch is compiled as C++, but you can add straight C files as well.

Arduino programs can be divided in three main parts: '''program structure''', '''values''' (variables and constants), and '''functions'''.
to:
Arduino programs can be divided in three main parts: '''structure''', '''values''' (variables and constants), and '''functions'''.
Changed lines 8-11 from:
!! Program Structure

!!!!Getting Started
to:
!! Structure
Added line 52:
* [[byte]]
Changed lines 65-66 from:

to:
* [[Integer Constants]]


Changed lines 75-77 from:
* int [[digitalRead]](pin)
* unsigned long [[pulseIn]](pin, value)
to:
* int [[digitalRead]](pin)
Changed lines 81-85 from:
'''Handling Time'''
to:
'''Advanced I/O'''
* [[shiftOut]](dataPin, clockPin, bitOrder, value)
* unsigned long [[pulseIn]](pin, value)

'''Time'''
Changed lines 90-93 from:
'''Random number generation'''

New in Arduino 0005.
to:
'''Math'''

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

'''Random Numbers'''
Added lines 103-109:
'''External Interrupts'''

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

* [[attachInterrupt]](interrupt, function, mode)
* [[detachInterrupt]](interrupt)
Changed lines 115-116 from:
* [[Serial.available]]()
* [[Serial.read]]()
to:
* int [[Serial.available]]()
* int [[Serial.read]]()
* [[Serial.flush]]()
Deleted lines 120-137:
''Old serial library (deprecated).''
* [[beginSerial]](speed)
* [[serialWrite]](c)
* int [[serialAvailable]]()
* int [[serialRead]]()
* [[printMode]](mode)
* [[printByte]](c)
* [[printString]](str)
* [[printInteger]](num)
* [[printHex]](num)
* [[printOctal]](num)
* [[printBinary]](num)
* [[printNewline]]()


'''Expert/Internal Functions'''
* [[http://www.nongnu.org/avr-libc/user-manual/modules.html | avr-libc]] is the standard library of C functions that Arduino builds on. To use these, you may need to add the corresponding '''#include''' statement to the top of your sketch.
November 12, 2006, at 06:51 PM by David A. Mellis - removing bit about floats not being supported
Changed lines 52-53 from:
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. ''Floating point variables and operations are not currently supported.''
to:
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.
Added line 57:
* [[float]]
November 04, 2006, at 08:19 PM by David A. Mellis -
Deleted lines 5-6:
If you're used to Processing or Java, please check out the [[http://arduino.berlios.de/index.php/Main/ComparisonProcessing | Arduino/Processing language comparison]].
November 04, 2006, at 08:18 PM by David A. Mellis -
Deleted lines 123-137:
!!Libraries

''These are the "official" libraries that are included in the Arduino distribution. They are compatible with the Wiring versions, and the links below point to the (excellent) Wiring documentation.''

* [[http://wiring.org.co/reference/libraries/Matrix/index.html | Matrix]] - Basic LED Matrix display manipulation library
* [[http://wiring.org.co/reference/libraries/Sprite/index.html | Sprite]] - Basic image sprite manipulation library for use in animations with an LED matrix
* [[http://wiring.org.co/reference/libraries/Wire/index.html | Wire]] - Two Wire Interface for sending and receiving data over a net of devices or sensors.

''These are not (yet) included with the Arduino distribution and may change.''

* [[http://www.arduino.cc/playground/Code/SimpleMessageSystem | Simple Message System]]
* [[http://www.arduino.cc/en/Tutorial/LCDLibrary | LCD Library]]
* [[Tutorial/TextString| TextString Library]]
* [[http://www.arduino.cc/playground/Code/Metro | Metro]]
October 21, 2006, at 10:32 PM by David A. Mellis - adding link to metro library
Added lines 137-138:
* [[http://www.arduino.cc/playground/Code/Metro | Metro]]
October 21, 2006, at 10:07 PM by David A. Mellis - adding libraries included in the distribution
Added lines 126-131:
''These are the "official" libraries that are included in the Arduino distribution. They are compatible with the Wiring versions, and the links below point to the (excellent) Wiring documentation.''

* [[http://wiring.org.co/reference/libraries/Matrix/index.html | Matrix]] - Basic LED Matrix display manipulation library
* [[http://wiring.org.co/reference/libraries/Sprite/index.html | Sprite]] - Basic image sprite manipulation library for use in animations with an LED matrix
* [[http://wiring.org.co/reference/libraries/Wire/index.html | Wire]] - Two Wire Interface for sending and receiving data over a net of devices or sensors.
October 20, 2006, at 06:57 PM by Tom Igoe -
Added line 130:
* [[Tutorial/TextString| TextString Library]]
October 01, 2006, at 10:55 PM by David A. Mellis - adding libraries
Added lines 123-129:

!!Libraries

''These are not (yet) included with the Arduino distribution and may change.''

* [[http://www.arduino.cc/playground/Code/SimpleMessageSystem | Simple Message System]]
* [[http://www.arduino.cc/en/Tutorial/LCDLibrary | LCD Library]]
September 05, 2006, at 03:58 PM by David A. Mellis -
Changed lines 4-5 from:
These are the basics about the Arduino language, which implemented in C. If you're used to Processing or Java, please check out the [[http://arduino.berlios.de/index.php/Main/ComparisonProcessing | Arduino/Processing language comparison]].
to:
Arduino provides a library of functions on top of the standard AVR C/C++ routines. The main file of your sketch is compiled as C++, but you can add straight C files as well.

If you're used to Processing or Java, please check out the [[http://arduino.berlios.de/index.php/Main/ComparisonProcessing | Arduino/Processing language comparison]].
August 27, 2006, at 05:58 PM by David A. Mellis -
Added lines 81-93:
'''Handling Time'''
* unsigned long [[millis]]()
* [[delay]](ms)
* [[delayMicroseconds]](us)

'''Random number generation'''

New in Arduino 0005.

* [[randomSeed]](seed)
* long [[random]](max)
* long [[random]](min, max)
Changed lines 118-122 from:
'''Handling Time'''
* unsigned long [[millis]]()
* [[delay]](ms)
* [[delayMicroseconds]](us)
to:
August 26, 2006, at 11:07 PM by David A. Mellis -
Changed line 1 from:
(:title API Reference:)
to:
(:title Reference:)
August 26, 2006, at 11:07 PM by David A. Mellis -
Changed lines 1-2 from:
(:title Arduino API Reference:) !!Arduino Reference
to:
(:title API Reference:)
!!Arduino Reference
August 26, 2006, at 11:07 PM by David A. Mellis -
Changed lines 1-2 from:
!!Arduino Reference
to:
(:title Arduino API Reference:) !!Arduino Reference
August 01, 2006, at 07:55 PM by David A. Mellis - Adding string and array.
Changed lines 56-58 from:
to:
* [[string]]
* [[array]]
August 01, 2006, at 02:18 PM by David A. Mellis -
Added lines 30-31:
* [[if|==]] (equal to)
* [[if|!=]] (not equal to)
August 01, 2006, at 02:17 PM by David A. Mellis -
Changed lines 30-34 from:
* [[Comparison|<]] (less than)
* [[Comparison|>]] (greater than)
* [[Comparison|<=]] (less than or equal to)
* [[Comparison|>=]] (greater than or equal to)
to:
* [[if|<]] (less than)
* [[if|>]] (greater than)
* [[if|<=]] (less than or equal to)
* [[if|>=]] (greater than or equal to)
August 01, 2006, at 02:04 PM by David A. Mellis - adding comparison and boolean operators
Added lines 29-39:
!!!!Comparison Operators
* [[Comparison|<]] (less than)
* [[Comparison|>]] (greater than)
* [[Comparison|<=]] (less than or equal to)
* [[Comparison|>=]] (greater than or equal to)

!!!!Boolean Operations
* [[Boolean | &&]] (and)
* [[Boolean | ||]] (or)
* [[Boolean | !]] (not)
July 09, 2006, at 02:47 PM by David A. Mellis - adding link to avr-libc
Added lines 93-95:

'''Expert/Internal Functions'''
* [[http://www.nongnu.org/avr-libc/user-manual/modules.html | avr-libc]] is the standard library of C functions that Arduino builds on. To use these, you may need to add the corresponding '''#include''' statement to the top of your sketch.
May 29, 2006, at 12:03 AM by David A. Mellis -
Changed lines 38-39 from:
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. '''Warning''': floating point variables and operations are not currently supported.
to:
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. ''Floating point variables and operations are not currently supported.''
Changed lines 67-68 from:
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.
to:
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.''
May 29, 2006, at 12:01 AM by David A. Mellis - clarifying serial communication
Changed lines 67-68 from:
Used for communication between the Arduino board and the computer, via the USB or serial connection. This communication happens on digital pins 0 (RX) and 1 (TX). This means that these functions can be used to communicate with a serial device on those pins, but also that any digital i/o on pins 0 and 1 will interfere with this communication.
to:
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.
May 28, 2006, at 11:55 PM by David A. Mellis -
Changed lines 67-68 from:
Used for communication between the Arduino board and the computer, via the USB or serial connection. Or used for serial communication on digital pins 0 (RX) and 1 (TX). ''Note: if you are using these functions, you cannot also use pins 0 and 1 for digital i/o.''
to:
Used for communication between the Arduino board and the computer, via the USB or serial connection. This communication happens on digital pins 0 (RX) and 1 (TX). This means that these functions can be used to communicate with a serial device on those pins, but also that any digital i/o on pins 0 and 1 will interfere with this communication.
May 28, 2006, at 11:52 PM by David A. Mellis - serial notes
Changed lines 67-68 from:
''Used for communication between the Arduino board and the computer, via the USB or serial connection (both appear as serial ports to software on the computer). Or used for serial communication on digital pins 0 (RX) and 1 (TX).''
to:
Used for communication between the Arduino board and the computer, via the USB or serial connection. Or used for serial communication on digital pins 0 (RX) and 1 (TX). ''Note: if you are using these functions, you cannot also use pins 0 and 1 for digital i/o.''

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

''Old serial library (deprecated).''
Deleted lines 88-96:
'' Serial Library as of version 0004''
* [[Serial.begin]](speed)
* [[Serial.available]]()
* [[Serial.read]]()
* [[Serial.print]](data)
* [[Serial.println]](data)


April 19, 2006, at 01:45 PM by David A. Mellis - Clarifying serial communication (USB or serial)
Added lines 66-68:

''Used for communication between the Arduino board and the computer, via the USB or serial connection (both appear as serial ports to software on the computer). Or used for serial communication on digital pins 0 (RX) and 1 (TX).''
April 17, 2006, at 01:47 PM by Massimo Banzi -
April 14, 2006, at 02:49 PM by David A. Mellis - Adding pulseIn()
Changed lines 59-60 from:
to:
* unsigned long [[pulseIn]](pin, value)
March 31, 2006, at 02:19 PM by Clay Shirky -
Changed line 5 from:
Arduino programs can be divided in three main parts: program structure, values (variables and constants), and functions.
to:
Arduino programs can be divided in three main parts: '''program structure''', '''values''' (variables and constants), and '''functions'''.
Changed lines 17-18 from:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you initialize [[variables]], set [[pinMode]], etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
to:
setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you woiuld set [[pinMode]], initialize serial communication, etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
March 31, 2006, at 01:02 PM by Clay Shirky -
Added lines 11-13:

An Arduino program run in two parts:
Added lines 16-18:

setup() is preparation, and loop() is execution. In the setup section, always at the top of your program, you initialize [[variables]], set [[pinMode]], etc. The loop section is the code to be executed -- reading inputs, triggering outputs, etc.
Changed lines 21-22 from:
!!!!Further Syntax
to:

!!!!Control Structures
Added lines 28-29:

!!!!Further Syntax
March 31, 2006, at 12:48 PM by Clay Shirky -
Changed line 5 from:
Arduino programs can be divided in three main parts:
to:
Arduino programs can be divided in three main parts: program structure, values (variables and constants), and functions.
March 31, 2006, at 11:39 AM by David A. Mellis - Clarifying analogWrite == pwm
Changed line 46 from:
'''Digital Pins'''
to:
'''Digital I/O'''
Changed line 51 from:
'''Analog Pins'''
to:
'''Analog I/O'''
Changed lines 53-54 from:
* [[analogWrite]](pin, value)
to:
* [[analogWrite]](pin, value) - ''PWM''
March 31, 2006, at 04:02 AM by Tom Igoe -
Changed line 17 from:
* [[if/else]]
to:
* [[if...else]]
March 31, 2006, at 04:01 AM by Tom Igoe -
Added line 17:
* [[if/else]]
March 28, 2006, at 11:19 AM by David A. Mellis - Changed "Define" to "#define"
Changed lines 24-25 from:
* [[Define]]
to:
* [[Define | #define]]
March 27, 2006, at 09:10 PM by Tom Igoe -
Changed lines 24-25 from:
to:
* [[Define]]
Changed lines 35-36 from:
Another form of variables are constants, which are preset variables that you do not need to define or initialize.
to:
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.
Changed lines 40-53 from:
Finally, defines are a useful C component that allow you to specify something before it is compiled.

!!!!Defines

You can define numbers in arduino that don't take up any program memory space on the chip. Arduino defines have the same syntax as C defines:

@@#define constantName value@@

Note that the # is necessary. For example:

@@#define ledPin 3@@

The compiler will replace any mentions of ledPin with the value 3 at compile time.
to:

March 27, 2006, at 08:56 PM by Tom Igoe -
March 27, 2006, at 08:28 PM by Tom Igoe -
Changed lines 83-87 from:
to:
* [[Serial.print]](data)
* [[Serial.println]](data)


March 27, 2006, at 08:23 PM by Tom Igoe -
Changed lines 82-83 from:
to:
* [[Serial.read]]()
March 27, 2006, at 08:19 PM by Tom Igoe -
Changed lines 81-82 from:
to:
* [[Serial.available]]()
March 27, 2006, at 08:14 PM by Tom Igoe -
Added lines 79-81:
'' Serial Library as of version 0004''
* [[Serial.begin]](speed)
March 26, 2006, at 10:21 PM by Jeff Gray -
Changed line 18 from:
* [[select case]]
to:
* [[switch case]]
March 26, 2006, at 10:21 PM by Jeff Gray -
Added line 18:
* [[select case]]
March 26, 2006, at 07:29 PM by Jeff Gray -
Deleted line 5:
March 25, 2006, at 09:21 PM by Jeff Gray -
Changed lines 9-10 from:
!!! Program Structure
to:
!! Program Structure
Changed lines 25-26 from:
!!! Variables
to:
!! Variables
Changed lines 54-55 from:
!!! Functions
to:
!! Functions
March 25, 2006, at 09:20 PM by Jeff Gray -
Changed lines 7-8 from:
(:table border=0 cellpadding=5 cellspacing=0:)
(:cell:)
to:
(:table width=90% border=0 cellpadding=5 cellspacing=0:)
(:cell width=50%:)
Changed line 53 from:
(:cell:)
to:
(:cell width=50%:)
March 25, 2006, at 09:19 PM by Jeff Gray -
Changed lines 7-8 from:
||border = 0
||
to:
(:table border=0 cellpadding=5 cellspacing=0:)
(:cell:)
Changed line 53 from:
||
to:
(:cell:)
Changed line 83 from:
||
to:
(:tableend:)
March 25, 2006, at 09:17 PM by Jeff Gray -
Added lines 7-8:
||border = 0
||
Added line 53:
||
Added line 83:
||
March 25, 2006, at 07:20 AM by Jeff Gray -
March 25, 2006, at 12:46 AM by Jeff Gray -
Changed lines 41-42 from:
You can define constants in arduino, that don't take up any program memory space on the chip. Arduino defines have the same syntax as C defines:
to:
You can define numbers in arduino that don't take up any program memory space on the chip. Arduino defines have the same syntax as C defines:
March 25, 2006, at 12:45 AM by Jeff Gray -
Added line 31:
!!!!Constants
Changed lines 39-40 from:
!!!Defines
to:
!!!!Defines
March 25, 2006, at 12:44 AM by Jeff Gray -
Added lines 36-49:
Finally, defines are a useful C component that allow you to specify something before it is compiled.

!!!Defines

You can define constants in arduino, that don't take up any program memory space on the chip. Arduino defines have the same syntax as C defines:

@@#define constantName value@@

Note that the # is necessary. For example:

@@#define ledPin 3@@

The compiler will replace any mentions of ledPin with the value 3 at compile time.
Deleted lines 78-91:

!!! Creating New Functions

!!!Defines

You can define constants in arduino, that don't take up any program memory space on the chip. Arduino defines have the same syntax as C defines:

@@#define constantName value@@

Note that the # is necessary. For example:

@@#define ledPin 3@@

The compiler will replace any mentions of ledPin with the value 3 at compile time.
March 25, 2006, at 12:42 AM by Jeff Gray -
Added lines 31-35:
Another form of variables are constants, which are preset variables that you do not need to define or initialize.

* [[Constants|HIGH]] | [[Constants|LOW]]
* [[Constants|INPUT]] | [[Constants|OUTPUT]]
Deleted lines 65-69:
!!! Constants

* [[Constants|HIGH]] | [[Constants|LOW]]
* [[Constants|INPUT]] | [[Constants|OUTPUT]]
March 24, 2006, at 11:46 PM by Jeff Gray -
Added lines 5-6:
Arduino programs can be divided in three main parts:
Changed lines 9-11 from:
Arduino programs can be divided in three main parts:

* [[Variable Declaration]]
to:
!!!!Getting Started
Added lines 12-14:
* [[Variable Declaration]]
* [[Function Declaration]]
!!!!Further Syntax
February 09, 2006, at 03:25 PM by 85.18.81.162 -
Changed lines 22-23 from:
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.
to:
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. '''Warning''': floating point variables and operations are not currently supported.
January 20, 2006, at 05:44 PM by 85.18.81.162 -
Changed lines 3-6 from:

These are the basics about the arduino language.

to:
These are the basics about the Arduino language, which implemented in C. If you're used to Processing or Java, please check out the [[http://arduino.berlios.de/index.php/Main/ComparisonProcessing | Arduino/Processing language comparison]].
January 08, 2006, at 07:46 PM by 82.186.237.10 -
Changed lines 53-54 from:
to:
* [[printNewline]]()
January 03, 2006, at 10:35 AM by 82.186.237.10 -
Deleted lines 65-79:


!!! Writing Comments

Comments are parts in the program that are used to inform about the way the program works. They are not going to be compiled, nor will be exported to the processor. They are useful for you to understand what a certain program you downloaded is doing or to inform to your colleagues about what one of its lines is.
There are two different ways of marking a line as a comment:

* you could use a double-slash in the beginning of a line: '''//'''
* you could use a combination of slash-asterisk --> asterisk-slash encapsulating your comments: '''/* blabla */'''

'''Tip'''
When experimenting with code the ability of commenting parts of your program becomes very useful for you to "park" part of the code for a while.


December 30, 2005, at 12:41 PM by 82.186.237.10 -
Deleted lines 6-9:
!!! Variables

Variables are expressions that you can use in programs to store values, like e.g. sensor reading from an analog pin.
Added lines 22-29:
!!! 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.

* [[char]]
* [[int]]
* [[long]]
December 29, 2005, at 03:08 PM by 82.186.237.10 -
Changed lines 18-25 from:
to:
* [[if]]
* [[for]]
* [[while]]
* [[SemiColon|;]] (semicolon)
* [[Braces|{}]] (curly braces)
* [[Comments|//]] (single line comment)
* [[Comments|/* */]] (multi-line comment)
December 28, 2005, at 10:59 PM by 82.186.237.10 -
Changed lines 22-25 from:
* void [[pinMode]](int pin, int mode)
* void [[digitalWrite]](int pin, int val)
* int [[digitalRead]](int pin)
to:
* [[pinMode]](pin, mode)
* [[digitalWrite]](pin, value)
* int [[digitalRead]](pin)
Changed lines 27-29 from:
* int [[analogRead]](int pin)
* void [[analogWrite]](int pin, int val)
to:
* int [[analogRead]](pin)
* [[analogWrite]](pin, value)
Changed lines 31-32 from:
* void [[beginSerial]](int baud)
* void [[serialWrite]](unsigned char c)
to:
* [[beginSerial]](speed)
* [[serialWrite]](c)
Changed lines 35-42 from:
* void [[printMode]](int mode)
* void [[printByte]](unsigned char c)
* void [[printString]](unsigned char *s)
* void [[printInteger]](int n)
* void [[printHex]](unsigned int n)
* void [[printOctal]](unsigned int n)
* void [[printBinary]](unsigned int n)
to:
* [[printMode]](mode)
* [[printByte]](c)
* [[printString]](str)
* [[printInteger]](num)
* [[printHex]](num)
* [[printOctal]](num)
* [[printBinary]](num)
Changed lines 44-47 from:
* unsigned [[long millis]]()
* void [[delay]](unsigned long ms)
* void [[delayMicroseconds]](unsigned long us)
to:
* unsigned long [[millis]]()
* [[delay]](ms)
* [[delayMicroseconds]](us)
December 16, 2005, at 09:58 PM by 85.18.81.162 -
Added lines 67-80:



!!!Defines

You can define constants in arduino, that don't take up any program memory space on the chip. Arduino defines have the same syntax as C defines:

@@#define constantName value@@

Note that the # is necessary. For example:

@@#define ledPin 3@@

The compiler will replace any mentions of ledPin with the value 3 at compile time.
December 09, 2005, at 06:39 PM by 195.178.229.25 -
Changed lines 4-6 from:
These are the functions available in the arduino language

to:
These are the basics about the arduino language.

Changed line 15 from:
* variable declaration
to:
* [[Variable Declaration]]
December 03, 2005, at 09:02 PM by 213.140.6.103 -
Changed lines 50-52 from:
* HIGH | LOW
* INPUT | OUTPUT
to:
* [[Constants|HIGH]] | [[Constants|LOW]]
* [[Constants|INPUT]] | [[Constants|OUTPUT]]
December 03, 2005, at 08:41 PM by 213.140.6.103 -
Changed line 21 from:
!!!! Digital Pins
to:
'''Digital Pins'''
Changed line 26 from:
!!!! Analog Pins
to:
'''Analog Pins'''
Changed line 30 from:
!!!! Serial Communication
to:
'''Serial Communication'''
Changed line 43 from:
!!!! Handling Time
to:
'''Handling Time'''
December 03, 2005, at 08:40 PM by 213.140.6.103 -
Added lines 20-21:

!!!! Digital Pins
Added lines 25-26:

!!!! Analog Pins
Added lines 29-30:

!!!! Serial Communication
Added lines 42-43:

!!!! Handling Time
December 03, 2005, at 07:48 PM by 213.140.6.103 -
Added lines 40-44:
!!! Constants

* HIGH | LOW
* INPUT | OUTPUT
December 03, 2005, at 07:37 PM by 213.140.6.103 -
Added lines 40-43:
!!! Creating New Functions


December 03, 2005, at 05:53 PM by 213.140.6.103 -
Changed lines 9-10 from:
to:
Variables are expressions that you can use in programs to store values, like e.g. sensor reading from an analog pin.
Added lines 12-15:

Arduino programs can be divided in three main parts:

* variable declaration
Changed lines 38-49 from:
* void [[delayMicroseconds]](unsigned long us)
to:
* void [[delayMicroseconds]](unsigned long us)

!!! Writing Comments

Comments are parts in the program that are used to inform about the way the program works. They are not going to be compiled, nor will be exported to the processor. They are useful for you to understand what a certain program you downloaded is doing or to inform to your colleagues about what one of its lines is.
There are two different ways of marking a line as a comment:

* you could use a double-slash in the beginning of a line: '''//'''
* you could use a combination of slash-asterisk --> asterisk-slash encapsulating your comments: '''/* blabla */'''

'''Tip'''
When experimenting with code the ability of commenting parts of your program becomes very useful for you to "park" part of the code for a while.
November 27, 2005, at 05:42 PM by 81.154.199.248 -
Changed lines 12-13 from:
* voide [[loop]]()
to:
* void [[loop]]()
November 27, 2005, at 05:17 PM by 81.154.199.248 -
Changed lines 24-33 from:
* void printMode(int mode)
* void printByte(unsigned char c)
* void printString(unsigned char *s)
* void printInteger(int n)
* void printHex(unsigned int n)
* void printOctal(unsigned int n)
* void printBinary(unsigned int n)
* unsigned long millis()
* void delay(unsigned long ms)
* void delayMicroseconds(unsigned long us)
to:
* void [[printMode]](int mode)
* void [[printByte]](unsigned char c)
* void [[printString]](unsigned char *s)
* void [[printInteger]](int n)
* void [[printHex]](unsigned int n)
* void [[printOctal]](unsigned int n)
* void [[printBinary]](unsigned int n)
* unsigned [[long millis]]()
* void [[delay]](unsigned long ms)
* void [[delayMicroseconds]](unsigned long us)
November 27, 2005, at 05:15 PM by 81.154.199.248 -
Changed lines 16-23 from:
* void digitalWrite(int pin, int val)
* int digitalRead(int pin)
* int analogRead(int pin)
* void analogWrite(int pin, int val)
* void beginSerial(int baud)
* void serialWrite(unsigned char c)
* int serialAvailable()
* int serialRead()
to:
* void [[digitalWrite]](int pin, int val)
* int [[digitalRead]](int pin)
* int [[analogRead]](int pin)
* void [[analogWrite]](int pin, int val)
* void [[beginSerial]](int baud)
* void [[serialWrite]](unsigned char c)
* int [[serialAvailable]]()
* int [[serialRead]]()
November 27, 2005, at 04:58 PM by 81.154.199.248 -
Changed lines 11-13 from:
* void [[setup()]]
* voide [[loop()]]
to:
* void [[setup]]()
* voide [[loop]]()
November 27, 2005, at 04:58 PM by 81.154.199.248 -
Added lines 9-13:

!!! Program Structure
* void [[setup()]]
* voide [[loop()]]
November 27, 2005, at 04:56 PM by 81.154.199.248 -
Added lines 6-9:

!!! Variables

!!! Functions
November 27, 2005, at 04:49 PM by 81.154.199.248 -
Added lines 1-24:
!!Arduino Reference


These are the functions available in the arduino language

* void [[pinMode]](int pin, int mode)
* void digitalWrite(int pin, int val)
* int digitalRead(int pin)
* int analogRead(int pin)
* void analogWrite(int pin, int val)
* void beginSerial(int baud)
* void serialWrite(unsigned char c)
* int serialAvailable()
* int serialRead()
* void printMode(int mode)
* void printByte(unsigned char c)
* void printString(unsigned char *s)
* void printInteger(int n)
* void printHex(unsigned int n)
* void printOctal(unsigned int n)
* void printBinary(unsigned int n)
* unsigned long millis()
* void delay(unsigned long ms)
* void delayMicroseconds(unsigned long us)

Share