per1234
99d3114168
Move built-in examples to dedicated repository
...
A dedicated repository for the examples will make it easier for them to be built in to arbitrary development tools. It will make it easier to use them for compilation testing of boards platforms. It provides a dedicated location for issue reports and pull requests that are specific to the examples. It continues the work done by moving the AVR and SAM boards platforms and built-in libraries towards making the arduino/Arduino repository solely a place to host the GUI code of the Arduino IDE.
2020-09-07 04:52:40 -07:00
per1234
8b11b58753
Replace boolean type with bool in examples
...
This is part of a move to encourage use of the standard bool type over Arduino's non-standard boolean type alias.
2018-05-30 04:30:13 -07:00
per1234
60c169ce91
Remove unused file from toneMultiple example
...
pitches.h is not used by this sketch so its presence will only cause confusion.
2017-08-18 15:19:20 +02:00
per1234
86c5ca8547
Fix incorrect comment in toneMultiple example
...
The comment about the note duration didn't match the code.
2017-08-16 15:44:30 -07:00
per1234
5f86bdd1b4
Use consistent format for Max/MSP patches included in the built-in example comments
2017-07-18 11:07:37 +02:00
per1234
abc9a8917d
Use consistent formatting style for Processing code included in built-in example comments
2017-07-18 11:07:37 +02:00
per1234
18b5327da0
Use consistent line wrapping in built-in example comments
2017-07-18 11:07:37 +02:00
per1234
2570383db9
Use a consistent number of spaces after punctuation in the comments of the built-in examples
2017-07-18 11:07:37 +02:00
per1234
e3044a5f5a
Make the formatting of opening comments of built-in examples consistent
2017-07-18 11:07:37 +02:00
per1234
eee3e5ba18
Auto Format all built-in examples
...
The only changes I left out are the Max/MSP patches because I don't know whether the indentation would break them.
2017-07-18 11:07:37 +02:00
per1234
8f48433f33
Indent all multi-line C style comments in built-in examples by at least two spaces
...
This is required for Auto Format compatibility because it has the undesirable effect of indenting only unindented contents of multi-lline comments, thus altering the relative indentation of the text.
The exception is the Max/MSP patches as I did not know whether indentation would break them.
2017-07-18 11:07:37 +02:00
per1234
499c424d59
Use Auto Format compatible bullet character in built-in example comment lists
...
Tools > Auto Format in the Arduino IDE removes asterisks from the start of every line in a C style comment, causing that character to be unsuitable for use as a bullet for lists in the example comments.
2017-07-18 11:07:37 +02:00
per1234
827a933eed
Maintain a consistent number of newlines at end of built-in examples
...
A single newline at the end of the examples was most common so I fixed all examples that did not follow this convention.
2017-07-18 11:07:37 +02:00
per1234
e57c9625cf
Fix typos in .txt files included with built-in examples
2017-07-18 11:07:37 +02:00
per1234
a71b40351f
Fix typos in the comments of the built-in examples
2017-07-18 11:07:37 +02:00
per1234
e180b7037d
Add a note about ATmega32U4 incompatibility to SerialEvent example
...
serialEvent() does not work on the ATmega32U4 boards.
Reference: https://github.com/arduino/Arduino/issues/1031
2017-07-07 00:38:15 +02:00
per1234
c5d4e5fc0f
Fix comparison between signed and unsigned warning in StringLength example
...
Fixes:
warning: comparison between signed and unsigned integer expressions
compiler warning.
Closes https://github.com/arduino/Arduino/issues/693 (in conjunction with https://github.com/arduino/Arduino/issues/6448 )
2017-07-07 00:32:37 +02:00
per1234
352df2c15f
Remove unused variable from StringAdditionOperator example
...
- Avoids confusing beginners who assume there must be some reason for this useless line of code.
- Fixes "warning: unused variable 'currentTime'" compiler warning.
Closes https://github.com/arduino/Arduino/issues/693
2017-07-07 00:30:13 +02:00
Arturo Guadalupi
934cac171c
changed sensor pin
...
Fixes #5884
2017-01-20 09:40:07 +01:00
agdl
55f3a4a475
Improved comment
2017-01-09 12:21:38 +01:00
agdl
62c0f0f79f
USe LED_BUILTIN in BlinkWithoutDelay
2017-01-09 12:21:38 +01:00
Colby Newman
08af7f8991
Improved Blink example comment wording
2016-11-25 15:36:36 +01:00
pfeerick
dc165ce46e
Minor change to example comment
...
Can't be the right word! ;)
2016-09-23 13:11:19 +10:00
agdl
7f41a5ece9
Improved Blink example comment
2016-09-02 12:27:03 +02:00
agdl
41c7308c9d
Use LED_BUILTIN
...
Modified blink example to use LED_BUILTIN. In this way it works out of the box on each board
2016-09-02 12:04:58 +02:00
agdl
332931e3a6
Fixed example comment
2016-08-31 16:29:40 +02:00
agdl
4d28ea8bcd
Changed data type to unsigned long
...
As requested in #5311 to avoid overflow issues.
2016-08-30 17:05:20 +02:00
Arturo Guadalupi
b8f3d2d8bb
Merge pull request #4613 from adouglass/patch-1
...
Fix tutorial typos in 08.Strings/StringAdditionOperator/StringAdditionOperator
2016-07-12 11:34:27 +02:00
YakovL
df8d22a440
fix the boundary check
...
..so that changing fadeAmount (to, say, 7) doesn't break the algorithm making an infinit loop (see https://github.com/arduino/Arduino/issues/5115 )
2016-07-10 18:31:42 +03:00
agdl
bd1135eb60
Added SerialPassthrough sketch to communication examples
2016-05-26 11:14:09 +02:00
Paolo P
eab75d9f65
Update ReadASCIIString.ino
...
Fix typo.
2016-03-14 12:50:39 +01:00
agdl
05dccd2a0e
Fixed description according to #4260
2016-03-14 09:10:14 +01:00
Adam Douglass
f0e3ec56a3
Fix tutorial typos
2016-02-25 12:39:55 -05:00
agdl
ef25a2b308
Revert "Fix for serialEvent example"
...
This reverts commit 4648330a7febbd7b7f4d28b75a0256b25b751532.
2015-12-15 12:20:45 +01:00
Martino Facchin
47bcf07f5e
fix StringIndexOf example logic and wording
2015-11-30 13:23:57 +01:00
agdl
53af4a7dea
Removed old example
2015-11-27 14:40:31 +01:00
agdl
c009ac6e4c
Modified example to not generate confusion
...
Only Arduino Mega was mentioned, but actually many boards have more than one Serial port
2015-11-27 14:36:48 +01:00
agdl
3229e422a2
run autoformat in the example
2015-11-26 11:44:05 +01:00
agdl
2f00c938a7
Fixed processing code for Processing 3
...
As pointed out in #4214 I changed the processing code to make it working wit Processing 3
2015-11-26 11:33:27 +01:00
Otavio Carneiro
aaccec7486
Improves Fade to ensure PWM pin is used
2015-10-31 17:37:26 -02:00
Arturo Guadalupi
589b411be7
Changed commit to indicate Processing 3
...
The example is now tested and works with Processing 3. Comment was missing.
2015-10-22 12:42:05 +02:00
Arturo Guadalupi
d56e3848b4
Modified project14 for compatibility to Processing 3
2015-10-22 12:38:01 +02:00
Martino Facchin
651ae04a19
Merge pull request #3500 from PeterVH/issue-3321
...
Improve ArduinoISP sketch
2015-10-07 12:00:20 +02:00
Federico Fissore
46cb5f0a5c
Removing useless includes from examples
2015-10-02 12:24:31 +02:00
Arturo Guadalupi
9eaea4205d
Modified reference to Leonardo only in the examples
...
According to #3786 removed the reference to Leonardo only in while(!Serial) of the examples.
Changed in in "wait for serial port to connect. Needed for native USB port only"
2015-09-21 14:58:58 +02:00
Peter Van Hoyweghen
ff1158a1b9
Add a define for baudrate configuration.
2015-09-05 20:45:15 +02:00
Peter Van Hoyweghen
d2a38f23a8
Rework pin configuration.
2015-09-05 20:43:44 +02:00
Peter Van Hoyweghen
bfffb17e40
Improve SPI clock configuration.
2015-09-05 20:41:03 +02:00
Arturo Guadalupi
33b67c0391
Removed StringToIntRGB example
...
like discussed in #3537
2015-09-03 14:26:37 +02:00
Peter Van Hoyweghen
82e5d4a88d
Remove change history to make room for documentation.
2015-08-31 22:17:12 +02:00