1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Commit Graph

305 Commits

Author SHA1 Message Date
Peter Van Hoyweghen
13cc57ed7e Reset target before driving SCK or MOSI, reset sequence as in AVR datasheets under "Serial Programming Algorithm" 2015-08-26 22:43:00 +02:00
Peter Van Hoyweghen
044a7b78c7 Fix warnings. Use unsigned int to represent a (word) address: the compiler will use the most efficient type on each platform: 32 bit on arm,
16 bit on avr which is is big enough.
2015-07-29 21:37:04 +02:00
Peter Van Hoyweghen
d271c1c8a2 BitBangedSPI::begin(): initialize levels of SCK and MOSI. Correct indentation. 2015-07-28 22:31:34 +02:00
Peter Van Hoyweghen
8d95899450 Call SPI.beginTransaction() after SPI.begin() 2015-07-28 22:26:58 +02:00
Arturo Guadalupi
8f4cd17486 Added BasicKit name to examples folder
according to #3560 I added BasicKit after 10.StarterKit. / is not allowed
2015-07-23 15:18:03 +02:00
Martino Facchin
99814355ec add includes to USB examples 2015-07-16 13:13:53 +02:00
Peter Van Hoyweghen
89184a3668 Use new style SPI::beginTransaction() api, make SPI_CLOCK configurable, select hardware or software SPI based on SPI_CLOCK. 2015-07-14 23:06:54 +02:00
Peter Van Hoyweghen
50f9e539d8 Ensure minimum spi pulse width. 2015-07-14 21:20:39 +02:00
Peter Van Hoyweghen
5a04ab2a32 Don't pulse error led if avrdude enters programming mode twice 2015-07-13 21:49:42 +02:00
Peter Van Hoyweghen
eca360bf42 Fix typo: SPI_CLOCK_DIV128 2015-07-13 21:30:34 +02:00
Peter Van Hoyweghen
c8b5e99267 Configure the serial port to use. Prefer native USB port if the Arduino has one. 2015-07-13 21:30:33 +02:00
Peter Van Hoyweghen
64e52d8016 Implement bitbang SPI for slow clock devices. (Sylvan Butler). 2015-07-13 21:22:00 +02:00
Peter Van Hoyweghen
a17a757722 Configure SPI pins as input when target is not in reset. 2015-07-13 21:22:00 +02:00
Peter Van Hoyweghen
15da182399 Support at89sx mcu's by adding the possibility to specify the polarity of the target reset signal. 2015-07-13 21:21:58 +02:00
Peter Van Hoyweghen
56e09109df The delay between reset and the enter progmode command got lost when introducing the SPI library. Put it back in. 2015-07-13 21:21:57 +02:00
Peter Van Hoyweghen
93b31b6cfa Simply use pin 10 to reset the target. It works for all Arduino's and allows the same "ArduinoISP shield" to be used on all of them. Such a shield has an ISP connector that: - wires MISO,MOSI, SCK, GND and 5V to the ISP connector of the programming Arduino - wires RESET to pin 10 of the programming Arduino. 2015-07-13 21:21:57 +02:00
Peter Van Hoyweghen
ad2a32fd24 Avoid delay in heartbeat. That way we can also set the baudrate back to the value used in the IDE. In fact, with this fix, baud rates of up to 115200 work also. 2015-07-13 21:21:57 +02:00
Randall Bohn (Huckle)
aeaed27e13 Use SPI library. 2015-07-13 21:18:17 +02:00
Randall Bohn (Huckle)
8dfe833e49 Set error if GET_SIGN_ON not followed by CRC_EOP 2015-07-13 21:13:54 +02:00
Randall Bohn (Huckle)
d968c7a8ee Don't start_pmode if we're already in pmode. 2015-07-13 21:13:53 +02:00
Randall Bohn (Huckle)
a2a06f56cc Be more specific about datatypes in the parameter struct. 2015-07-13 21:13:53 +02:00
Federico Fissore
974fef1000 Serial plotter: added comment to ReadAnalogVoltage. See #3451 2015-07-07 09:04:00 +02:00
Federico Fissore
d9b3a86e84 Serial plotter: added comment to AnalogReadSerial. Fixes #3451 2015-07-06 15:27:07 +02:00
Federico Fissore
5e98cd8528 Examples: mass code format. See example_formatter.conf 2015-07-06 15:19:05 +02:00
Federico Fissore
7d8d07889f ArduinoISP example moved under 11.ArduinoISP 2015-06-23 10:16:09 +02:00
Arturo Guadalupi
1d7bdb5050 Fixed behaviour in the falling phase PJ03 StarterKit
According to #2585 there was a "glitch" in the falling phase because of a
missing +2 in the first condition
2015-06-12 13:14:06 +02:00
Arturo Guadalupi
0d4f208f1a Cleared numberOfKnocks variable
Fixed according to #2294
2015-06-01 10:33:26 +02:00
Arturo Guadalupi
c28fb7acd4 Added float example to StringConstructor
This example has been added according to #3264
2015-06-01 09:50:51 +02:00
Arturo Guadalupi
4648330a7f Fix for serialEvent example
In the example is stated that the function is run between one loop and the next, but actually the call to the function was missing.
The comment also state that the response can be delayed using a delay in the loop,so I think that the way it should be is so by only
adding a call to the function serialEvent as first operation in the loop. I so added this call.
2015-05-21 10:15:55 +02:00
Federico Fissore
9166828bfe Due to website configuration changes, every url starting with http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191 2015-05-20 17:10:06 +02:00
Federico Fissore
67997a6605 Revert "make editor folding happy"
This reverts commit e0926139fb61f7edbc38dd5bf7aaff1644e07a8f.
2015-05-07 17:15:50 +02:00
ricardo.jl.rufino
96fcda2cbc make editor folding happy 2015-05-07 17:15:50 +02:00
Federico Fissore
d87f0faf11 Examples: adding description, layout and schematics 2015-05-04 16:49:10 +02:00
jogo-
351cfbbab1 Fix typos in BlinkWithoutDelay.ino 2015-01-28 23:11:51 +01:00
Cristian Maglie
6c4f7dc293 Merge branch 'master' into ide-1.5.x
Conflicts:
	hardware/arduino/cores/arduino/wiring.c
	libraries/Ethernet/src/utility/util.h
	libraries/Ethernet/src/utility/w5100.cpp
	libraries/Ethernet/src/utility/w5100.h
	libraries/Ethernet/util.h
	libraries/Ethernet/utility/util.h
	libraries/SPI/SPI.cpp
	libraries/SPI/SPI.h
2014-12-02 22:35:17 +01:00
Arturo Guadalupi
060c1e766c Updated description
It reads the state of a potentiometer (an analog input) and turns on an LED
 only if the LED goes above a certain threshold level. It prints the analog value
 regardless of the level.

updated to

 It reads the state of a potentiometer (an analog input) and turns on an LED
 only if the potentiometer goes above a certain threshold level. It prints the analog value
 regardless of the level.
2014-11-24 09:37:20 +01:00
Cristian Maglie
3a1b7ea362 Merge branch 'master' into ide-1.5.x. Updated revision log.
Conflicts:
	build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino
	hardware/arduino/boards.txt
2014-10-01 13:59:32 +02:00
Robert Allen
d3f76e9558 Fix typo in KeyboardLogout.ino
Comment says ALT+s, code says ALT+l. This remedies that difference.
2014-09-26 12:51:10 -07:00
Cristian Maglie
1a7a921f14 Merge branch 'master' into HEAD
Conflicts:
	build/shared/examples/03.Analog/Smoothing/Smoothing.ino
2014-07-02 16:05:23 +02:00
Cristian Maglie
faa08454cd Fixed Smoothing example
"index" variable name create conflicts with Arduino Due where "index" is
a reserved word for Posix C.
2014-07-02 15:44:26 +02:00
Federico Fissore
c387f87329 Corrected typos: Yun -> Yún 2014-05-30 12:17:09 +02:00
Cristian Maglie
5d92c1ba8e Merge remote-tracking branch 'arduino/master' into ide-1.5.x
Conflicts:
	build/shared/examples/01.Basics/Blink/Blink.ino
	build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino
	build/shared/examples/10.StarterKit/p02_SpaceshipInterface/p02_SpaceshipInterface.ino
	hardware/arduino/cores/arduino/HardwareSerial.cpp
2014-05-23 21:04:47 +02:00
Scott Fitzgerald
9ad8748d40 Updated Blink
removed the variable “led” and added some additional descriptive text
2014-05-08 23:05:53 +04:00
Scott Fitzgerald
cf5fc143ac Modified Keyboard Reprogram example
Updated to reflect changes with how the IDE creates new blank sketches.
2014-05-03 19:16:29 +04:00
Jaime Iniesta
9403021460 fix comments on spaceship example
The comments explaining the if..else part were mistaken.
2014-05-01 22:22:04 +02:00
Cristian Maglie
06d75a4fa6 Merge branch 'master' into ide-1.5.x 2014-04-07 19:14:13 +02:00
Cristian Maglie
9c7e3ab4c3 Fixed example StringStartsWithEndsWith.ino 2014-04-07 19:07:49 +02:00
Federico Fissore
f3ca136cd9 Removed useless hidden files
Updated .gitignore
Closes #996
2014-02-27 14:21:48 +01:00
Cristian Maglie
793b139d39 Merge remote-tracking branch 'arduino/master' into ide-1.5.x 2014-02-05 15:58:30 +01:00
Scott Fitzgerald
017326acc6 Minor changes to Communication Examples
Added a note to the included Processing sketches about replacing
println(Serial.list()) with Serial.printArray() if using Processing 2.1
or later
2014-01-29 14:27:09 +04:00
Cristian Maglie
7902fc2591 Fixed non working example: StringStartsWithEndsWith.ino 2013-11-18 10:29:10 +01:00
Cristian Maglie
a0727ac862 Merge branch 'master' into ide-1.5.x
Conflicts:
	build/shared/examples/02.Digital/BlinkWithoutDelay/BlinkWithoutDelay.ino
	build/shared/examples/09.USB/Keyboard/KeyboardMessage/KeyboardMessage.ino
	libraries/LiquidCrystal/examples/CustomCharacter/CustomCharacter.ino
	libraries/SD/examples/listfiles/listfiles.ino
2013-11-12 09:45:56 +01:00
Scott Fitzgerald
b79ee023de Updated KeyboardMessage example 2013-11-11 16:47:49 +04:00
Scott Fitzgerald
83ef1814cf Updated Blink without delay example
Changed variable to unsigned long.
2013-11-11 16:31:25 +04:00
Federico Fissore
c1d8b5ecf9 MIDI example folder renamed to Midi because sketch file is Midi.ino 2013-10-21 12:32:46 +02:00
Federico Fissore
b4c68b3dff Run new astyle formatter against all the examples 2013-10-21 09:58:40 +02:00
Cristian Maglie
65c36f2eb6 Merge branch 'master' into ide-1.5.x 2013-07-14 11:51:50 +02:00
Nick
ad500ae24d Update incorrect docs in tonePitchFollower example
The comments state that the speaker should be on pin 8, but the code references pin 9. Updated the comments to reflect the correct pin.
2013-06-11 14:47:15 +02:00
Cristian Maglie
3394f61276 Merged 1.0.5 2013-05-29 18:30:36 +02:00
Fede85
5481bacba2 Fixes #1432 2013-05-23 16:24:38 +02:00
Cristian Maglie
a46259a0cf Merged 1.0.5
Still missing:
- updates to WiFi lib for sam.
- updates to examples of Ehternet and WiFi for sam.

Merge remote-tracking branch 'arduino/master' into ide-1.5.x

Conflicts:
	app/src/processing/app/Base.java
	app/src/processing/app/Editor.java
	app/src/processing/app/helpers/FileUtils.java
	app/src/processing/app/i18n/Resources_fr.po
	app/src/processing/app/i18n/Resources_fr.properties
	build/shared/revisions.txt
	hardware/arduino/avr/libraries/Ethernet/examples/DnsWebClient/DnsWebClient.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiChatServer/WifiChatServer.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiPachubeClient/WifiPachubeClient.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiPachubeClientString/WifiPachubeClientString.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiTwitterClient/WifiTwitterClient.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiUdpSendReceiveString/WifiUdpSendReceiveString.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiWebClient/WifiWebClient.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiWebClientRepeating/WifiWebClientRepeating.ino
	hardware/arduino/avr/libraries/WiFi/examples/WifiWebServer/WifiWebServer.ino
	libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino
	libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino
	libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino
	libraries/WiFi/examples/WiFiTwitterClient/WiFiTwitterClient.ino
	libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino
	libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino
	libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino
	libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino
	libraries/WiFi/examples/WifiChatServer/WifiChatServer.ino
	libraries/WiFi/examples/WifiPachubeClient/WifiPachubeClient.ino
	libraries/WiFi/examples/WifiPachubeClientString/WifiPachubeClientString.ino
	libraries/WiFi/examples/WifiTwitterClient/WifiTwitterClient.ino
	libraries/WiFi/examples/WifiUdpSendReceiveString/WifiUdpSendReceiveString.ino
	libraries/WiFi/examples/WifiWebClient/WifiWebClient.ino
	libraries/WiFi/examples/WifiWebClientRepeating/WifiWebClientRepeating.ino
	libraries/WiFi/examples/WifiWebServer/WifiWebServer.ino
2013-05-11 14:37:25 +02:00
Fede85
0db906f175 changed the pin where to connect the button from 2 to 4 to be compliant with the comment in the header and the tutorial.
Fixes #1396
2013-04-30 17:55:34 +02:00
Fede85
c87ddd567d small changes to the Debounce example 2013-04-16 16:50:23 +02:00
Federico Vanzati
97e0f34572 Merge pull request #1192 from miek/debounce-fix
Fix Debounce example to work as described
2013-04-16 01:22:31 -07:00
Cristian Maglie
62b723357c Merged 1.0.5
Merge remote-tracking branch 'arduino/master' into ide-1.5.x

Conflicts:
	app/src/processing/app/Base.java
	build/shared/revisions.txt
	hardware/arduino/avr/cores/arduino/malloc.c
	hardware/arduino/cores/arduino/avr-libc/malloc.c
	hardware/arduino/cores/arduino/malloc.c
	todo.txt
2013-04-03 13:51:04 +02:00
mdxtinkernick
a6022df422 Update build/shared/examples/05.Control/Arrays/Arrays.ino
removed redundant thisPin declaration in setup
2013-02-11 21:41:30 +00:00
Cristian Maglie
85976278e7 Merged upcoming 1.0.4
Merge remote-tracking branch 'arduino/master' into ide-1.5.x
2013-01-23 17:26:51 +01:00
Dan Moore
07f3915d8f Removing duplicate comment from top of KeyboardAndMouseControl example code. 2013-01-17 10:56:37 -05:00
Fede85
62e48dba91 corrected a wrong comment inside the KeyboardAndMouseControl example 2013-01-15 10:37:19 +01:00
Fede85
fbdd7754ce corrected a wrong comment inside the KeyboardAndMouseControl example 2013-01-15 10:27:32 +01:00
Mike
b7da415d6f Fix Debounce example to work as described
This alters the debounce example code to toggle the LED rather than just use
the button state to set the LED state.

Fixes #293
2012-12-28 20:16:42 +00:00
Cristian Maglie
38c05d2742 Merged 1.0.4 pre-release into 1.5 2012-12-17 16:53:45 +01:00
Cristian Maglie
105a5b1c05 Example had a wrong name (02.Digital/DigitalInputPullup)
Fixes #1074
2012-12-17 09:37:26 +01:00
Cristian Maglie
66ee23b885 Merged 1.0.3 2012-12-10 15:55:05 +01:00
Scott Howard
a309364fb8 typo in StringLength.ino fixes #1028 2012-12-05 13:25:37 -05:00
Scott
20c181470d Fixed issue in Starter kit example number 4 2012-11-14 16:07:38 -05:00
Cristian Maglie
23c7536dc7 Merged 1.0.2
Merge remote-tracking branch 'arduino/master' into ide-1.5.x

Conflicts:
	app/src/processing/app/debug/AvrdudeUploader.java
	build/shared/examples/09.USB/Keyboard/KeyboardLogout/KeyboardLogout.ino
	build/shared/examples/09.USB/Keyboard/KeyboardReprogram/KeyboardReprogram.ino
	build/shared/examples/09.USB/Keyboard/KeyboardSerial/KeyboardSerial.ino
	build/shared/examples/09.USB/Mouse/ButtonMouseControl/ButtonMouseControl.ino
	build/shared/examples/09.USB/Mouse/JoystickMouseControl/JoystickMouseControl.ino
	hardware/arduino/boards.txt
2012-11-04 22:49:14 +01:00
Scott
d6e9e03d13 Changed Leonardo only examples to "USB", added 2012-10-31 16:08:20 -04:00
Fede85
24d74ca8a2 typos and Due compliants comments on Keyboard examples 2012-10-22 10:20:35 +02:00
Scott
68e5047736 Added keywords for new libraries, rearranged and modified Due and USB examples
Renamed Leonardo Only examples folder to USB. Modified keyboard and
Mouse examples to indicate Due compatibility.

Minor modifications to Due examples to conform with existing example
sketches.

Added keywords to for Audio, Scheduer, and USBHost libraries.
2012-10-21 12:36:54 -04:00
Cristian Maglie
05a2d77f15 Merge remote-tracking branch 'origin/master' into merge-1.0.1 2012-10-18 20:31:51 +02:00
Fede85
a21c4e153f review of typos a and small errors in some examples 2012-10-18 19:03:25 +02:00
Cristian Maglie
aba27c43aa Merged upstream arduino branch 2012-10-18 15:50:09 +02:00
Scott
9fd14df549 Added Starter Kit examples 2012-10-12 13:23:48 -04:00
Tom Igoe
36b5d52d4a Corrected link address in Midi example 2012-08-13 15:21:28 -04:00
Cristian Maglie
a8f74c89d0 Fixed StringCharacters example 2012-08-06 12:03:04 +02:00
Cristian Maglie
d035d3b32c Fixed StringLength example 2012-06-26 01:01:52 +02:00
Cristian Maglie
46aeeb4b29 Merged upstream Arduino master branch 2012-06-26 00:51:35 +02:00
Cristian Maglie
33778af0db Fixed 02.Digital/StateChangeDetection buoncing issue 2012-06-25 19:15:49 +02:00
Tom Igoe
57ed5ba6f2 Reconciled comment versions on TonePitchFollower example 2012-06-12 10:23:19 -04:00
Tom Igoe
4b7bc3b584 Made changes to TonePitchFollower example for clarity, suggestions by user Michael Flynn 2012-05-31 18:24:38 -04:00
David A. Mellis
2cbde219c1 Merge remote-tracking branch 'upstream/master' 2012-05-21 09:31:54 -07:00
Tom Igoe
c3a9b304e1 MultiSerialMega example is now bi-directional 2012-05-19 19:55:25 -07:00
Tom Igoe
e997530b49 renamed USB examples folder to make web formatting easier 2012-05-01 14:05:42 -04:00
Zach Eveland
c7d98cc85d Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
Conflicts:
	build/shared/examples/04.Communication/SerialCallResponse/SerialCallResponse.ino
	build/shared/examples/04.Communication/SerialCallResponseASCII/SerialCallResponseASCII.ino
2012-05-01 10:19:00 -04:00
Tom Igoe
64f8f0aa62 Updated Max Patches on SerialCallResponse and SerialCallResponseASCII examples 2012-04-24 13:14:10 -04:00
Zach Eveland
59f7f988d7 added a slight delay to loop in DigitalReadSerial example so we don't overload Serial Monitor 2012-04-19 10:39:34 -04:00
Zach Eveland
c44329d732 Merge branch 'master' of github.com:arduino/Arduino into LUFA_bootloader
Conflicts:
	build/shared/examples/01.Basics/DigitalReadSerial/DigitalReadSerial.ino
2012-04-19 10:34:53 -04:00
Tom Igoe
4b886ef421 Added ReadAnalogVoltage example 2012-04-16 07:59:12 -04:00
Tom Igoe
53fd81fc00 Added comments to Basics examples 2012-04-16 07:58:55 -04:00