1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-23 19:21:59 +03:00
Commit Graph

622 Commits

Author SHA1 Message Date
44a96b253c add pull up option to OneWire
see #447
2015-06-21 22:19:23 +02:00
f206d31581 update AVR src
* java code not tested *

Merge remote-tracking branch 'remotes/arduino/master' into esp8266

Conflicts:
	README.md
	app/src/processing/app/AbstractMonitor.java
	arduino-core/src/processing/app/Serial.java
	libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino
	libraries/WiFi/library.properties
2015-06-17 14:24:25 +02:00
cb29f4832e Bridge: Temboo examples update. Released version 1.0.7 2015-06-10 17:22:52 +02:00
c1c5e70fe1 Dropped libraries Firmata and Temboo: they are downloaded at build time from their repos 2015-06-10 15:41:46 +02:00
8a3982baf8 TFT: releasing version 1.0.4 2015-06-10 15:01:37 +02:00
e04e4a68ec Stepper: releasing version 1.1.1 2015-06-10 15:01:20 +02:00
309e7892fd SD: releasing version 1.0.5 2015-06-10 15:01:02 +02:00
47d3cc9991 Robot_Motor: releasing version 1.0.2 2015-06-10 15:00:43 +02:00
553f74b740 Robot_Control: releasing version 1.0.2 2015-06-10 15:00:29 +02:00
97c431ca4e RobotIRRemote: releasing version 1.0.2 2015-06-10 15:00:06 +02:00
506efe08e5 Ethernet: releasing version 1.0.4 2015-06-10 14:59:45 +02:00
07685a07dc Bridge: releasing version 1.0.6 2015-06-10 14:57:13 +02:00
f2a8f517f0 Stepper: fixed indentation 2015-06-05 16:18:46 +02:00
1064554b87 Stepper: optimization on timing calculations
micros() is now called only once per cycle (instead of 3).

The rollover check is superflous because the "last_step_time" field
is unsigned.
2015-06-05 16:18:46 +02:00
0546bf04e0 Stepper library: updated version 2015-06-05 16:18:46 +02:00
50ca5d8f75 Stepper Library supports 5 phase, 5 wire motors. 2015-06-05 16:18:46 +02:00
caf000b005 Fixed unsigned var and version note 2015-06-05 16:18:46 +02:00
847816739f Update stepper library: High-speed stepping mod and timer rollover fix
When using the stepper library with a 1.8 degrees per step motor, and at high angular speeds, the current Stepper library leads to really loud and jittery rotation. This is due to the fact that the timing is calculated in milliseconds, and the delay length between steps is only 2.5 milliseconds when trying to spin at 120 rpm. Since only integer math is performed, you end up actually bouncing between different step delays, and thus speeds, from step to step instead of giving the motor a constant input.  Which causes the motor to freak out.

Changing the library to calculate the step delays in micros() solves that problem for any speed you can reasonably demand from your stepper motor. The down side is that the micros() counter rolls over every hour or so, and any move you perform after that point will hang your code. Easy fix for that is to add an || micros() - this->last_step_time < 0 to the while loop if statement in Stepper.cpp.
2015-06-05 16:18:46 +02:00
8a54c70a94 Added literal float to improve precision
according to #2922 I added missing float literals to improve the accuracy of the result.

If sensorValue = 1:

Before: voltage = 4

Now: voltage = 4.88
2015-06-05 12:29:50 +02:00
2aab78ade9 fix ILI9341 (define for SPI speed was deleted?) 2015-06-03 15:40:11 +02:00
394bab072c Merge pull request #3036 from damellis/tft-spi-transactions
Add SPI transactions to TFT library.
2015-05-29 12:45:27 +02:00
a9cdd44d27 Optimizations: remove multiple calls to the status() function. 2015-05-28 11:00:23 +02:00
29e253495d Merge pull request #3193 from Chris--A/SD_Strings
Added String handling to SD class
2015-05-28 10:48:37 +02:00
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
36f320b6d5 Added String handling to SD class 2015-05-20 22:02:09 +10:00
5a1c3a1ad5 Adafruit_ILI9341 add functions for easy write a data stream to display.
Adafruit_ILI9341 allow biger size for spiwriteBytes
2015-05-18 20:12:05 +02:00
e8789e9cb5 Merge branch 'master' into esp8266
* master: (414 commits)
  Don't export sketch if the underlying core does not support it. Fixes #3171
  RSyntaxTextArea: using a modified version, tracked at https://github.com/arduino/RSyntaxTextArea. Fixes #3099
  Updated keywords.txt
  New editor on MacOSX: since CMD+J is known as "jump to selection" and the editor has no such feature, CMD+J is disabled on mac. See #3098
  Old Preferences class remains for backwards compatibility as a delegate for PreferencesData
  New Preferences window: renders fine on every OS and it's easier to adapt using NetBeans as visual editor. Fixes #3140
  Remove spawn from exec command
  Removed redundant call to File.deleteIfExists()
  Removed buggy redundant check in FileUtils.deleteIfExists()
  Restored current line/current selected lines display on lower left of the IDE. Fixes #3134
  Updated cursor.ino
  New editor on MacOSX: restored CMD+E for finding selected text
  New editor on MacOSX: CMD+UP/DOWN moves cursor to start or end of sketch. See #3098
  New editor on MacOSX: CMD+BACKSPACE deletes current line until cursor position, ALT+BACKSPACE deletes previous word. See #3098
  ArduinoIDE is in the default package. Removed
  Fixes  #2969:
  Fix Uncategorized warning message
  New editor: ALT+ BACKSPACE deletes next word (OSX only). See #3098
  New editor: ALT+ UP/DOWN move current line only if "editor.advanced" (hidden pref) is true. Fixes #3101
  New editor: mark occurrences enable when "editor.advanced" (hidden pref) is true. Fixes #3102
  ...

Conflicts:
	.gitignore
	build/build.xml
	hardware/esp8266com/esp8266/libraries/ESP8266WiFi/keywords.txt
	hardware/esp8266com/esp8266/libraries/ESP8266WiFi/library.properties
	hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h
	libraries/WiFi/README.adoc
	libraries/WiFi/src/WiFi.cpp
	libraries/WiFi/src/WiFiClient.cpp
	libraries/WiFi/src/WiFiClient.h
	libraries/WiFi/src/WiFiServer.cpp
	libraries/WiFi/src/WiFiUdp.cpp
2015-05-18 14:54:06 +03:00
f946821381 fix data types 2015-05-16 16:29:10 +03:00
b40ec2fc35 add info methods to SD class 2015-05-16 16:22:38 +03:00
c3d3016049 Updated cursor.ino
Previous commit broke the actual functionality. The code was confusing and worked until the previous commit.
The changes make it logically and functionally correct.
2015-05-14 18:30:17 +05:30
4ef84f6914 add template methods for stream to stream writes to SD and FS 2015-05-14 12:41:24 +03:00
9e76276fb2 add more NULL prt checks in strtok_r
Conflicts:
	libraries/SD/src/SD.cpp
	libraries/SD/src/SD.h
2015-05-12 17:10:19 +02:00
41d370fb28 Add option to select SPI speed at SD::begin 2015-05-11 22:29:02 +03:00
934434d5f9 SD:
- optimize SPI usage 148% write speed (24kB/s -> 37kB/s) and 127% read speed (121kB/s -> 155kB/s) at 8MHz
 - add clock frequency as parameter for begin(csPin, frequency)
 - SD @80MHz write: 84kB/s read: 231kB/s

SPI add functions:
 - void write32(uint32_t data);
 - void write32(uint32_t data, bool msb);
 - void transferBytes(uint8_t * out, uint8_t * in, uint32_t size);

Adafruit_ILI9341:
 - code clean
2015-05-10 17:34:16 +02:00
04cc6a858b Adafruit_ILI9341 +7% speed now at 327,45% total 2015-05-09 18:56:29 +02:00
2d37fb67c5 many speed optimizations in Adafruit_ILI9341 lib (3x times faster)
add new SPI function:

  void write(uint8_t data);
  void write16(uint16_t data);
  void write16(uint16_t data, bool msb);
  void writeBytes(uint8_t * data, uint32_t size);
  void writePattern(uint8_t * data, uint8_t size, uint32_t repeat);

Adafruit_ILI9341:
| Benchmark                 | Old (ms) | New (ms) | Speedup     |
| ------------------------- | -------- | -------- | ----------- |
| Screen fill 				| 1248369  | 278707   |  +347,91%   |
| Text 						| 86102    | 53785    |  +60,09%    |
| Lines 					| 825400   | 536374   |  +53,89%    |
| Horiz/Vert Lines 			| 101875   | 24653    |  +313,24%   |
| Rectangles (outline) 		| 65720    | 17295    |  +279,99%   |
| Rectangles (filled) 		| 2592250  | 579157   |  +347,59%   |
| Circles (filled) 			| 411475   | 179454   |  +129,29%   |
| Circles (outline) 		| 360002   | 233584   |  +54,12%    |
| Triangles (outline)		| 261772   | 170118   |  +53,88%    |
| Triangles (filled) 		| 866951   | 246237   |  +252,08%   |
| Rounded rects (outline) 	| 154131   | 81570    |  +88,96%    |
| Rounded rects (filled) 	| 2828112  | 660983   |  +327,86%   |
|                           |          |          |             |
| Total                     | 9802159  | 3061917  |  +220,13%   |
2015-05-09 16:19:32 +02:00
86e4786bff Merge pull request #206 from Links2004/esp8266
rework Adafruit_ILI9341 complete now work with the new SPI implementation
2015-05-08 22:45:23 +03:00
db64fd9f98 fix SPI run on system clock 2015-05-08 15:30:27 +02:00
301de028ec * miss to add the new files 2015-05-08 15:04:19 +02:00
fe52e7f04f Added a note about non-standard row offsets in LiquidCrystal.cpp
In my case I had to change it to make my 16x4 LCD work properly

Fixes #1333
2015-05-08 12:35:04 +02:00
c20cfbea87 increase SD Card SPI Speed 2015-05-08 13:22:49 +03:00
b15808e60f fix SPI clock for SD library 2015-05-08 11:44:45 +03:00
895cbed6b8 OneWire set up as INPUT_PULLUP 2015-05-04 18:08:16 +02:00
d048b497e9 fix bug #159 (broken Onewire)
thx to support from ficeto
2015-05-02 15:57:31 +02:00
83ed3d5d8f Importing my changes 2015-04-30 20:48:50 +03:00
f118dee688 Bridge: default baudrate is specified with BRIDGE_BAUDRATE. Fixes #2904 2015-04-30 16:32:32 +02:00
1c25d2432f SD: allow multiple SD instances
The SDClass class makes a reference to "SD.card" instead of just "card". SD is a global instance of SDClass.
This prevents any other instance of SDClass from functioning correctly.
The fix also allows SDClass to be used with an SD card which is removed and replaced, whereas previously, using the global instance SD did not allow this due to the limitation of begin() which cannot be called more than once.
2015-04-27 11:53:02 +02:00
0c7f9234df Add SPI transactions to TFT library. 2015-04-26 17:28:19 -04:00
5519f15663 Libraries: added help files to mitigate missing contextual reference issue 2015-04-23 17:19:15 +02:00
e720bb058d Audio and Servo library version bump 2015-04-23 13:28:17 +02:00